Replies: 1 comment 1 reply
-
|
Pandoc will only add highlighting if the source code block is marked with the language as one of the class attributes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given
mwe.mdasexecute
produces
How can I get the above output from a Microsoft Word file (
.docx)?mwe.docx uses a style named
SourceCodethat Pandoc's DOCX reader converts to<pre><code></code></pre>.pandoc --from docx --to html --highlight-style=pygments mwe.docxproducesBeta Was this translation helpful? Give feedback.
All reactions