diff options
Diffstat (limited to '_extensions/js/multicol-nohead/multicol-nohead.lua')
-rw-r--r-- | _extensions/js/multicol-nohead/multicol-nohead.lua | 6 |
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 |