aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/test/lua/module
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-01-30 08:05:25 -0800
committerJohn MacFarlane <[email protected]>2024-01-30 08:05:25 -0800
commit32b6db15dca1201d83bb942f2d0dc1a5b108828d (patch)
tree9b579f1b2491479069529b4846ce3c4fba517e83 /pandoc-lua-engine/test/lua/module
parentef698423125611f63f7fc5d663c6df8244c8fe90 (diff)
Update lua tests for change to toTOCTree.
Diffstat (limited to 'pandoc-lua-engine/test/lua/module')
-rw-r--r--pandoc-lua-engine/test/lua/module/pandoc-structure.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/pandoc-lua-engine/test/lua/module/pandoc-structure.lua b/pandoc-lua-engine/test/lua/module/pandoc-structure.lua
index f5faa8377..17209c7f8 100644
--- a/pandoc-lua-engine/test/lua/module/pandoc-structure.lua
+++ b/pandoc-lua-engine/test/lua/module/pandoc-structure.lua
@@ -110,10 +110,10 @@ return {
assert.are_equal(
structure.table_of_contents(chunked),
pandoc.BulletList{
- {pandoc.Plain({pandoc.Link('First', 'chunk-001', '', {id='toc-first'})}),
- pandoc.BulletList{{pandoc.Plain({pandoc.Link('Subsection', 'chunk-002', '', {id='toc-subsection'})})}}
+ {pandoc.Plain({pandoc.Link('First', 'chunk-001#first', '', {id='toc-first'})}),
+ pandoc.BulletList{{pandoc.Plain({pandoc.Link('Subsection', 'chunk-002#subsection', '', {id='toc-subsection'})})}}
},
- {pandoc.Plain({pandoc.Link('Second', 'chunk-003', '', {id='toc-second'})})}
+ {pandoc.Plain({pandoc.Link('Second', 'chunk-003#second', '', {id='toc-second'})})}
}
)
end),
@@ -130,8 +130,8 @@ return {
assert.are_equal(
structure.table_of_contents(chunked, {toc_depth = 1}),
pandoc.BulletList{
- {pandoc.Plain({pandoc.Link('First', 'chunk-001', '', {id='toc-first'})})},
- {pandoc.Plain({pandoc.Link('Second', 'chunk-002', '', {id='toc-second'})})}
+ {pandoc.Plain({pandoc.Link('First', 'chunk-001#first', '', {id='toc-first'})})},
+ {pandoc.Plain({pandoc.Link('Second', 'chunk-002#second', '', {id='toc-second'})})}
}
)
end),