note
'))
if kind == "math" then
-- \mnote content is raw math — no $...$ needed
b:insert(pandoc.Plain {
pandoc.Math("InlineMath", wrap_mnote(content, ""))
})
else
b:insert(pandoc.Plain(note_inlines(content)))
end
b:insert(pandoc.RawBlock("html", "
"))
return b
end
local function math_div(cls, tex)
return pandoc.Div(
pandoc.Plain { pandoc.Math("InlineMath", "\\displaystyle " .. tex) },
pandoc.Attr("", { cls }))
end
local function html_env(lines, star)
local rows = pandoc.Blocks({})
for idx, L in ipairs(lines) do
local final = star and idx == #lines
local cells = pandoc.Blocks({})
if final then
-- boxed final result: render the whole line (alignment "&" stripped)
local flat = trim(table.concat(split_top(L.math, "&"), " "))
cells:insert(pandoc.Div(
pandoc.Plain {
pandoc.RawInline("html", '