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.md
asexecute
produces
How can I get the above output from a Microsoft Word file (
.docx
)?mwe.docx uses a style named
SourceCode
that Pandoc's DOCX reader converts to<pre><code></code></pre>
.pandoc --from docx --to html --highlight-style=pygments mwe.docx
producesBeta Was this translation helpful? Give feedback.
All reactions