1

I've been looking for a while and I can't seem to find a HTML to MediaWiki Converter.

I'm looking for somewhere where I can type something like:

HTML Code:
<a href="https://mediawiki.org">MediaWiki</a>

and I get:

MediaWiki Code:
[https://mediawiki.org MediaWiki]

or you type MediaWiki code and get HTML code

Like this:

MediaWiki Code:
[https://mediawiki.org MediaWiki]

and I get:

HTML Code:
<a href="https://mediawiki.org">MediaWiki</a>
0

You can convert between html & MediaWiki (in both directions) with pandoc. There are a lot of other possible conversions available to list available input formats run pandoc --list-input-formats for output formats pandoc --list-output-formats and if course for help use pandoc --help | more.

  • Free, gratis & Open Source.
  • Command line
  • Cross Platform
  • Normally used with one, or more, input files (or URLs) and an output file specified with the -o flag.
  • Can be used interactively by just using the command pandoc -f input_format -t output_format and typing or pasting in the text but will only output the results when control-C is pressed to exit.

Command Line Example

Latest release, bug tracker & source are all available on GitHub

Note that recent versions of pandoc, when used from the command line as above, allow multi-line text entry so when you have finished typing you need to press control-Z then enter or control-C for the processing to take place.

  • 1
    Doesn't seem to always convert correctly. I'm using gamepedia (which used mediawiki). Not sure if this info is useful but I hope helps somehow – TigerYT Jun 30 '18 at 19:06
  • 1
    It may be because it hasn't been updated in two years? Oh, I'm also using pandoc.org/try – TigerYT Jun 30 '18 at 19:12
  • 1
    @TigerYT - It would be helpful to know what it doesn't convert properly ideally as a ticket on github.com/jgm/pandoc – Steve Barnes Jun 30 '18 at 20:10
  • Last release was 2.2.1 on 11th May 2018 at github.com/jgm/pandoc/releases - it might be the web site that is behind the times :-) – Steve Barnes Jun 30 '18 at 20:12
  • Yes, must be. though devotter.com/converter worked perfectly (Uses Pandoc) – TigerYT Jun 30 '18 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.