Skip to content

Instantly share code, notes, and snippets.

@mkweskin
Last active June 28, 2024 14:39
Show Gist options
  • Save mkweskin/5414303 to your computer and use it in GitHub Desktop.
Save mkweskin/5414303 to your computer and use it in GitHub Desktop.
Convert markdown to mediawiki with pandoc
pandoc -f markdown -t mediawiki test.md -o test.wiki
# Thanks to @tillmanj for the updated formatting
@splaisan
Copy link

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

@wethinkagile
Copy link

wethinkagile commented Aug 14, 2022

@splaisan

Error parsing reader format "markdown-strict": (line 1, column 16):
unexpected unknown extension: strict

@tillmanj
Copy link

pandoc -f markdown -t mediawiki INPUT.md -o OUTPUT.wiki

@lwaldron
Copy link

lwaldron commented Oct 3, 2023

I love a useful 1-line gist

@mkweskin
Copy link
Author

mkweskin commented Oct 3, 2023

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