kuenzign / WikiMarkdown

MediaWiki extension that allows for markdown syntax to be used on wiki pages
https://www.mediawiki.org/wiki/Extension:WikiMarkdown
MIT License
12 stars 9 forks source link
markdown mediawiki-extension

About

This is a MediaWiki extension that allows for markdown syntax to be used on wiki pages. More information can be found on the extension page.

Requirements

This version of the extension has been tested with Parsedown 1.7.4, Parsedown Extra 0.8.1, and MediaWiki 1.35.

Installation

Add this line to your LocalSettings.php:

wfLoadExtension( 'WikiMarkdown' );

This extension requires Parsedown to be installed and optionally Parsedown Extra and Parsedown Extended. Either install them manually, or use Composer by adding the line "extensions/WikiMarkdown/composer.json" to the "composer.local.json" file in the root directory of your wiki, e.g.

{
    "extra": {
        "merge-plugin": {
            "include": [
                "extensions/WikiMarkdown/composer.json"
            ]
        }
    }
}

Then run composer update in the root directory of your wiki.

Usage

On wiki pages, you can now use <markdown> elements:

<markdown>
## Emphasis

**This is bold text**

__This is bold text__

*This is italic text*

_This is italic text_

~~Strikethrough~~
</markdown>

Parameters

Configuration

Other Features

Credits