summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-par.lua
blob: 4afaef22046370a36cf7f38c446ec7faf3e0d6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
if not modules then modules = { } end modules ['node-par'] = {
    version   = 1.001,
    comment   = "companion to node-ini.mkiv",
    author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
    copyright = "PRAGMA ADE / ConTeXt Development Team",
    license   = "see context related readme files"
}

local starttiming = statistics.starttiming
local stoptiming  = statistics.stoptiming

local actions = nodes.tasks.actions("everypar")

-- this one is called a lot!

local function everypar(head)
    starttiming(builders)
    head = actions(head)
    stoptiming(builders)
    return head
end

if LUATEXFUNCTIONALITY > 6857 then

    callback.register("insert_local_par",everypar,"paragraph start")

end