pandoc/test/lua
John MacFarlane 9f984ff26a Replace Element and makeHierarchical with makeSections.
Text.Pandoc.Shared:

+ Remove `Element` type [API change]
+ Remove `makeHierarchicalize` [API change]
+ Add `makeSections` [API change]
+ Export `deLink` [API change]

Now that we have Divs, we can use them to represent the structure
of sections, and we don't need a special Element type.
`makeSections` reorganizes a block list, adding Divs with
class `section` around sections, and adding numbering
if needed.

This change also fixes some longstanding issues recognizing
section structure when the document contains Divs.
Closes #3057, see also #997.

All writers have been changed to use `makeSections`.
Note that in the process we have reverted the change
c1d058aeb1
made in response to #5168, which I'm not completely
sure was a good idea.

Lua modules have also been adjusted accordingly.
Existing lua filters that use `hierarchicalize` will
need to be rewritten to use `make_sections`.
2019-09-08 22:20:19 -07:00
..
module Replace Element and makeHierarchical with makeSections. 2019-09-08 22:20:19 -07:00
attr-test.lua data/pandoc.lua: enable table-like behavior of attributes (#4080) 2017-11-20 09:37:40 -08:00
block-count.lua Text.Pandoc.Lua: support Inline and Block catch-alls 2017-08-22 23:30:48 +02:00
hello-world-doc.lua data/pandoc.lua: regularize constructors. 2017-06-29 17:08:59 +02:00
implicit-doc-filter.lua data/pandoc.lua: regularize constructors. 2017-06-29 17:08:59 +02:00
markdown-reader.lua Lua module: provide simple read format parser 2017-04-26 23:28:40 +02:00
math.lua Test Lua filter converting display math to inline math 2018-04-29 16:20:38 +03:00
metatable-catch-all.lua Text.Pandoc.Lua: respect metatable when getting filters 2017-08-22 22:56:51 +02:00
plain-to-para.lua Lua filter: revert to non-destructuring filters 2017-04-15 21:40:48 +02:00
script-name.lua Lua: register script name in global variable 2018-02-24 22:43:28 +01:00
single-to-double-quoted.lua Lua filters: Remove special treatment of Quoted, Math. 2017-06-29 15:47:27 +02:00
smallcaps-title.lua Lua filter: allow filtering of meta data only 2017-04-26 23:28:40 +02:00
smart-constructors.lua data/pandoc.lua: auto-fix nested constructor arguments 2019-01-13 17:14:10 +01:00
strmacro.lua Lua filter: revert to non-destructuring filters 2017-04-15 21:40:48 +02:00
undiv.lua Allow lua filters to return lists of elements 2017-09-24 12:04:15 -07:00
uppercase-header.lua Lua filters: preload text module (#4077) 2017-11-18 13:24:06 -08:00