Skip to content

Instantly share code, notes, and snippets.

@RyanNutt RyanNutt/md2docx.bat
Last active Sep 3, 2018

Embed
What would you like to do?
Convert all markdown files in a folder to docx with MathJax rendered as image instead of as Microsoft equations. https://compsci.rocks/markdown-mathjax-word-embedded-images/
@echo off
for %%f in (*.md) do (
echo Converting %%~nf.md to %%~nf.docx
pandoc "%%~nf.md" --webtex -t html | pandoc -f html -o "%%~nf.docx"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.