Skip to content

Instantly share code, notes, and snippets.

@mkweskin
Last active April 16, 2026 20:53
Show Gist options
  • Select an option

  • Save mkweskin/5414303 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Fantastic.

@devpraton

Copy link
Copy Markdown

Awesome

@mkweskin

mkweskin commented Dec 2, 2019

Copy link
Copy Markdown
Author

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

ghost commented Jan 22, 2020

Copy link
Copy Markdown

Awesome!

@splaisan

Copy link
Copy Markdown

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

@cloudscape-germany

cloudscape-germany commented Aug 14, 2022

Copy link
Copy Markdown

@splaisan

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

@tillmanj

Copy link
Copy Markdown

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

@lwaldron

lwaldron commented Oct 3, 2023

Copy link
Copy Markdown

I love a useful 1-line gist

@mkweskin

mkweskin commented Oct 3, 2023

Copy link
Copy Markdown
Author

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

Thank you for this, @tillmanj, I've updated this gist with this info.

@iGoodok

iGoodok commented Apr 3, 2025

Copy link
Copy Markdown

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment