Ben K.
Ben K.

Reputation: 1150

Is there a Rawblock-like feature for docx Writers?

When I convert from Markdown to LaTeX, I can replace Images or RawBlocks with special LaTeX code using python filters. Is there a similar way to do this for docx output?

In fact, I would like to use python-docx to generate tables which are more complex than what pandoc can handle. I can extract the xml related to the table and I would like to insert that into the document using a filter.

Upvotes: 0

Views: 140

Answers (1)

mb21
mb21

Reputation: 39488

Yes, as can be seen in the pandoc source code, the format should be:

RawBlock (Format "openxml") "<customXML></customXML>"

or

RawInline (Format "openxml") "<customXML></customXML>"

Upvotes: 1

Related Questions