1
0

feat: change note for filter update

This commit is contained in:
2026-06-14 09:57:53 +08:00
parent c19b662d7c
commit aef22ca2e7
3 changed files with 23 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
local function is_pagebreak(text)
return text:find('\\newpage') or text:find('\\clearpage')
end
function RawBlock(el)
if el.format:match('tex$') then
if is_pagebreak(el.text) then
return pandoc.RawBlock('openxml', '<w:p><w:r><w:br w:type="page"/></w:r></w:p>')
end
end
end
function RawInline(el)
if el.format:match('tex$') then
if is_pagebreak(el.text) then
return pandoc.RawInline('openxml', '<w:r><w:br w:type="page"/></w:r>')
end
end
end