Extension:MarkdownSyntax

MarkdownSyntax is a MediaWiki extension that enables markdown syntax.

Work In Progress
This extension hasn't been written yet. This page will serve as a placeholder for information and planning about the writing of the MarkdownSyntax extension until it is actually written.


 * Ian Smith suggested using UsenetSyntax as a model. This is the path I intend to take. It requires the ExtendedSyntaxParser.


 * It says here that the InternalParseBeforeLinks hook should be... "Used to process the expanded wiki code after &lt;nowiki>, HTML-comments, and templates have been treated. Suitable for syntax extensions that want to support templates and comments." That sounds like what we need, but I'm going to ignore that for now and try the UsenetSyntax model using ExtendedSyntaxParser approach.

Installation
require_once( "$IP/extensions/MarkdownSyntax.php" );
 * 1) Create a folder in your extensions directory called MarkdownSyntax.
 * So you have something like this: $IP/extensions/MarkdownSyntax/
 * Note: $IP is your MediaWiki install dir.
 * 1) Download ExtendedSyntaxParser, be sure to rename the downloaded file to ExtendedSyntaxParser.php.
 * 2) Drop ExtendedSyntaxParser.php into $IP/extensions/MarkdownSyntax/
 * 3) Download Michel Fortin's PHP Markdown, unzip and look for the file markdown.php.
 * Note: Don't download PHP Markdown Extra. Only PHP Markdown is supported. PHP Markdown Extra may be supported in a future release
 * 1) Drop markdown.php</tt> into $IP/extensions/MarkdownSyntax/</tt>
 * 2) Download (yet to be written script) MarkdownSyntax.php</tt> and drop it into $IP/extensions/MarkdownSyntax/</tt> also.
 * 3) Enable the extension by adding these two lines to your LocalSettings.php</tt>: require_once( "{$IP}/extensions/ExtendedSyntaxParser.php" );