Skip to content

Commit 3f802b5

Browse files
committed
use syntax recognized by pandoc
1 parent 3627e7d commit 3f802b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/filters/normalize/extractquartodom.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function parse_md_in_html_rawblocks()
2828
end,
2929
RawBlock = function(raw)
3030
local result
31-
if raw.format:sub(1, 14) == "pandoc-reader:" then
31+
if raw.format:sub(1, 14) == "pandoc-reader-" then
3232
-- this is a pandoc reader format, so we can read it directly
3333
result = pandoc.read(raw.text, raw.format:sub(15)).blocks
3434
elseif raw.format == "pandoc-native" then
@@ -42,7 +42,7 @@ function parse_md_in_html_rawblocks()
4242
end,
4343
RawInline = function(raw)
4444
local result
45-
if raw.format:sub(1, 14) == "pandoc-reader:" then
45+
if raw.format:sub(1, 14) == "pandoc-reader-" then
4646
-- this is a pandoc reader format, so we can read it directly
4747
result = quarto.utils.as_inlines(pandoc.read(raw.text, raw.format:sub(15)).blocks)
4848
elseif raw.format == "pandoc-native" then

0 commit comments

Comments
 (0)