Convert markdown to mediawiki with pandoc

From Qiki
Revision as of 13:11, 4 June 2025 by Ryan (talk | contribs) (Created page with "Normal Usage<syntaxhighlight lang="bash"> pandoc -f markdown -t mediawiki test.md -o test.wiki </syntaxhighlight>Sometimes, the current version of MediaWiki can't display the <code><nowiki><syntaxhighlight></nowiki></code> tag. This could be a solution.<syntaxhighlight lang="bash"> pandoc -f markdown -t mediawiki test.md | sed "s/<syntaxhighlight/\n<syntaxhighlight/" > test.wiki </syntaxhighlight>https://pandoc.org/ https://pandoc.org/try/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Normal Usage

pandoc -f markdown -t mediawiki test.md -o test.wiki

Sometimes, the current version of MediaWiki can't display the <syntaxhighlight> tag. This could be a solution.

pandoc -f markdown -t mediawiki test.md | sed "s/<syntaxhighlight/\n<syntaxhighlight/" > test.wiki

https://pandoc.org/

https://pandoc.org/try/