--[[
RawBlock(el)
将 Markdown 文档中的 HTML
片段解析为 AST 并注入到文档块中,
后续由 Table(el) 针对列内容自动设置对齐。
]]
function RawBlock(el)
local fmt = el.format or ""
if string.find(fmt, "html", 1, true) then
local s = el.text or ""
local sl = string.lower(s)
if string.match(sl, "^%s* 0 and (numeric / total) >= 0.6 then
cs.align = pandoc.AlignRight
else
cs.align = pandoc.AlignLeft
end
end
return el
end