Extension:MarkdownExtraParser

The MarkdownExtraParser extension allows for hooking MediaWiki's parser to use Michael Fortin's PHP Markdown Extra library.

It works additional to the out of box Mediawiki Markup spec beside some conflicts.

Download
Clone the GitHub repo or download the zip

Installation

 * 1) Create a folder in your   directory called
 * Note:  is your MediaWiki install directory
 * You should have something like this:
 * 1) Clone the GitHub repo into your new directory (or download the zip)
 * 2) Download Michael Fortin's PHP Markdown Extra library
 * 3) Extract and copy the   file into your new   directory
 * 4) Enable the extension by adding the following line to your   file:

Configuration
Before "requiring" the extension, you can set an array variable to hold some configuration settings for MarkdownExtraParser, like so:


 * Available Options
 * 'use_raw_html' - Allows for more advanced markdown-to-HTML conversions, such as image tags, etc.

Conflicts
You can mix MediaWiki markup (wikitext) and Markdown markup except for some logical and programmatical tags:

disfunctions:
 * If you want an [edit section] link, you have to use MediaWiki headings ( == Heading == )
 * Magic words (like,  ) are not supported

notes:
 * are used in MediaWiki as numbered lists, but with Markdown you will get a heading
 * MediaWiki Definition list  will only work inline. Not with a newline before.
 * does not work in Templates, there you have to use still MediaWiki markup

Differences
Next to the different but mostly more usable syntax from markdown, there are several differences regarding MediaWiki-Syntax:


 * Markdown has no internal links and images. So you can use MediaWiki and [[File:Markdown-mark.svg]] . Only the order of title in titled links like Mainpage is inverted to Markdown [Mainpage](https://www.mediawiki.org/wiki/MediaWiki).
 * Extension:Cite which creates references as footnotes on a page (used ) is not needed. Markdown Extra has built in footnotes ( [^book] and [^book]: lorem ipsum itigur ). You don't have to mess up your continuous text with the long content. You can shift it to the bottom of paragraph or page, sense and purpose of a footnote.