Last active
June 28, 2024 14:39
-
-
Save mkweskin/5414303 to your computer and use it in GitHub Desktop.
Convert markdown to mediawiki with pandoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pandoc -f markdown -t mediawiki test.md -o test.wiki | |
# Thanks to @tillmanj for the updated formatting |
Awesome
Glad this is still relevant, I haven't had the need to use this method since I created this gist.
Awesome!
Great!
pandoc rules, once more, thanks for the info.
Note, I had to choose the correct markdown format with -f markdown-strict -t mediawiki
instead of -w
Error parsing reader format "markdown-strict": (line 1, column 16):
unexpected unknown extension: strict
pandoc -f markdown -t mediawiki INPUT.md -o OUTPUT.wiki
I love a useful 1-line gist
pandoc -f markdown -t mediawiki INPUT.md -o OUTPUT.wiki
Thank you for this, @tillmanj, I've updated this gist with this info.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fantastic.