lowercasename/docdown

Is there a way to add "+styles" extension to docx conversion?

Closed this issue · 1 comments

It used to be that you could set how the pandoc script was going to run, and exactly which options it would use. I would like a way to add the styles extension to the conversion. In the terminal script, it involves adding "+styles" to "docx" to make something like this:

$ pandoc test/docx/custom-style-reference.docx -f docx+styles -t markdown

Thanks!

I figured out how to do this, and at the same time solved my block quotes formatting problem. I built the app from the source code, but I found the two instances of 'docx' as a command line argument in main.js and changed them to 'docx+styles'. I formatted the reference.docx so that 'first paragraph' is not indented, and 'body text' is, and then you just have to put a style block ::: {custom-style="Body Text"} ::: around the first paragraph after a heading, and voila, all the paragraphs following block quotes are automatically not indented, but everything else is.

Just thought I'd share.