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', '')
end
end
end
function RawInline(el)
if el.format:match('tex$') then
if is_pagebreak(el.text) then
return pandoc.RawInline('openxml', '')
end
end
end