git.iko.soy/typeable/pandoc
on master help sign in
Update tool which generates lua module docs

All "helper functions" are not part of the Lua code for module pandoc, but are added in Haskell. The respective documentation section must therefore be excluded from automatic regeneration.

commit7fa286fff1eb66ba7e2b2f6452fd06e293347d17 authorAlbert Krewinkel <albert@zeitkraut.de> dateFri 29 Dec 2017, 09:58 (9 years ago) parent9be2c76
2 files changed+9−9
doc/lua-filters.md+6−8 tools/update-lua-docs.lua+3−1
doc/lua-filters.md+6−8
@@ -1323,7 +1323,7 @@ Lua functions for pandoc scripts.
13231323
13241324 See also: [OrderedList](#OrderedList)
13251325
1326−## Helper Functions
1326+## Helper functions
13271327
13281328[`pipe (command, args, input)`]{#pipe}
13291329
@@ -1346,8 +1346,7 @@ Lua functions for pandoc scripts.
13461346
13471347[`walk_block (element, filter)`]{#walk_block}
13481348
1349−: Apply a filter inside a block element, walking its
1350− contents.
1349+: Apply a filter inside a block element, walking its contents.
13511350
13521351 Parameters:
13531352
@@ -1355,8 +1354,8 @@ Lua functions for pandoc scripts.
13551354 : the block element
13561355
13571356 `filter`:
1358− : a lua filter (table of functions) to be applied
1359− within the block element
1357+ : a lua filter (table of functions) to be applied within
1358+ the block element
13601359
13611360 Returns: the transformed block element
13621361
@@ -1371,8 +1370,8 @@ Lua functions for pandoc scripts.
13711370 : the inline element
13721371
13731372 `filter`:
1374− : a lua filter (table of functions) to be applied
1375− within the inline element
1373+ : a lua filter (table of functions) to be applied within
1374+ the inline element
13761375
13771376 Returns: the transformed inline element
13781377
@@ -1399,7 +1398,6 @@ Lua functions for pandoc scripts.
13991398 -- The inline element in that block is an `Emph`
14001399 assert(block.content[1].t == "Emph")
14011400
1402−
14031401# Module pandoc.utils
14041402
14051403This module exposes internal pandoc functions and utility
tools/update-lua-docs.lua+3−1
@@ -25,7 +25,9 @@ end
2525
2626function Header (el)
2727 if in_module_section then
28− if el.level == 1 then
28+ if el.level == 1 or
29+ -- special case for Module pandoc
30+ (el.level == 2 and el.identifier == 'helper-functions') then
2931 in_module_section = false
3032 return el
3133 else