summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-06-13 23:02:45 +0200
committerJonas Smedegaard <dr@jones.dk>2025-06-14 00:59:24 +0200
commit2e095b8179fb6c51117c25777b1369191c84c7ef (patch)
treeafd501efbdcf84fe420695f605a30286b75a79c4
parent681acf0e769db244aedc30ca18184d74eb47ca27 (diff)
support raw \begin{multicols}{3}\raggedcolumns
-rw-r--r--_extensions/js/multicol-nohead/multicol-nohead.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/_extensions/js/multicol-nohead/multicol-nohead.lua b/_extensions/js/multicol-nohead/multicol-nohead.lua
index 67c2f15..f190db8 100644
--- a/_extensions/js/multicol-nohead/multicol-nohead.lua
+++ b/_extensions/js/multicol-nohead/multicol-nohead.lua
@@ -31,6 +31,10 @@ local function is_columnar_header(elem)
return elem.t == "Header" and elem.level == 1
end
+local function is_multicols_begin(elem)
+ return elem.t == "RawBlock" and elem.text == "\\begin{multicols}{3}\\raggedcolumns"
+end
+
local function is_multicols_end(elem)
return elem.t == "RawBlock" and elem.text == "\\end{multicols}"
end
@@ -130,6 +134,8 @@ function Pandoc(doc)
multicol_places[i] = "end"
multicol_now = false
end
+ elseif is_multicols_begin(elem) then
+ multicol_now = true
elseif is_multicols_end(elem) then
multicol_now = false
end