Skip to content

Instantly share code, notes, and snippets.

@mkweskin
Last active November 13, 2023 15:52
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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
@jm-janzen
Copy link

Fantastic.

@praton1729
Copy link

Awesome

@mkweskin
Copy link
Author

mkweskin commented Dec 2, 2019

Glad this is still relevant, I haven't had the need to use this method since I created this gist.

Copy link

ghost commented Jan 22, 2020

Awesome!

@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