Here is an update. At some point along the line, the bug referenced by jgm above has been remedied, which rendered the filter non-functional. Here is the current working script. Joel System: Windows 7 Pro ghc 7.10.2 Pandoc 1.17.1 R 3.2.3 RStudio 0.99.863 import Text.Pandoc.JSON pgBrkXml :: String pgBrkXml = "" pgBrkBlock :: Block pgBrkBlock = RawBlock (Format "openxml") pgBrkXml insertPgBrks :: Block -> Block --insertPgBrks (Para [RawInline (Format "tex") "\\newpage"]) = pgBrkBlock insertPgBrks (RawBlock (Format "latex") "\\newpage") = pgBrkBlock insertPgBrks blk = blk main = toJSONFilter insertPgBrks -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a1dc8029-bc47-49d4-a55f-0c035c076ba5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.