Pandoc support - alexvoss/torshi GitHub Wiki
In addition to supporting various Markdown dialects, it would be nice if we could generate Pandoc-stlye Markdown so that the content can be translated into a document for a text editor such as Word or OpenOffice. This would open up immense opportunities for integrating into organizational workflows outside the world of Docs-as-Code.
Pandoc supports parsing HTML divs and spans into its own Pandoc Div and Span elements. These, in turn, can be rendered to paragraphs in .docx
, .odt
and .icml
outputs. With a suitable reference document they can be automatically styled.
Given that Pandoc can read CommonMark, it would seem that supporting output to word processors and DTP tools should be trivial, mainly a question of writing a suitable processing pipeline (outside the scope of Torshi itself) and writing input files in a Markdown format that Pandoc can process into the desired output.