We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9562fb commit b1a13faCopy full SHA for b1a13fa
include-files/include-files.lua
@@ -87,7 +87,12 @@ function transclude (cb)
87
if not fh then
88
io.stderr:write("Cannot open file " .. line .. " | Skipping includes\n")
89
else
90
- local contents = pandoc.read(fh:read '*a', format).blocks
+ -- read file as the given format with global reader options
91
+ local contents = pandoc.read(
92
+ fh:read '*a',
93
+ format,
94
+ PANDOC_READER_OPTIONS
95
+ ).blocks
96
last_heading_level = 0
97
-- recursive transclusion
98
contents = system.with_working_directory(
0 commit comments