Skip to content

Commit 885239e

Browse files
committed
revealjs - remove Lua fix as Pandoc solves the issue
revert #1053 (cd72d7c) while keeping the test now that it is fixed upstream (jgm/pandoc#8098)
1 parent 81a2834 commit 885239e

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/resources/filters/quarto-post/reveal.lua

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ function reveal()
1818
Span = applyPosition,
1919
Image = applyPosition
2020
},
21-
{
22-
Div = fencedDivFix
23-
}
2421
}
2522
else
2623
return {}
@@ -54,17 +51,4 @@ function asCssSize(size)
5451
else
5552
return size
5653
end
57-
end
58-
59-
function fencedDivFix(el)
60-
-- to solve https://github.com/quarto-dev/quarto-cli/issues/976
61-
-- until Pandoc may deal with it https://github.com/jgm/pandoc/issues/8098
62-
if el.content[1] and el.content[1].t == "Header" and el.attr.classes:includes("fragment") then
63-
level = PANDOC_WRITER_OPTIONS.slide_level
64-
if level and el.content[1].level > level then
65-
-- This will prevent Pandoc to create a <section>
66-
el.content:insert(1, pandoc.RawBlock("html", "<!-- -->"))
67-
end
68-
end
69-
return el
7054
end

0 commit comments

Comments
 (0)