Contents
Markdown Parser
Description
The Markdown parser allows you to have John Gruber's Markdown rendered nicely inside Moin's code blocks and to use it instead of or additionally to the standard Moin syntax.
This parser allows free HTML
The ability to write free HTML is part of the Markdown specification, and is included here. For that reason, this plugin is best suited for private or highly-secured wikis.
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
0.1 |
1.8 |
Installation
For general installation instructions, see ParserMarket/InstallingParsers. This parser requires the Python Markdown library.
Usage
To use this parser, simply put #!text_markdown after the beginning of the code block, or begin an entire page with #format text_markdown.
Example
#format text_markdown A header ======== Some text, with words made _italic_ in *two* ways, and other words made __bold__, also in **two** ways. Note that word-wrapping in the text source is irrelevant to the output. A sub-section ------------- A [link][1] to Google. [1]: http://www.google.com "Try Google!" A horizontal rule: -------------------------------------------------------------------
Copyright
This parser is copyright by Jason R. Fruit; more specific information can be found in the source.
License
This parser is released under the terms of the GNU GPL.
Discussion
Please use the moin template for the parser (add some copyright license info to the source). -- ReimarBauer 2009-06-12 15:48:11
Done. Do you think the warning in the description is clear enough? -- JasonFruit 2009-06-12 16:54:25
Perhaps this parser could enable the tables extension of the Python Markdown module. -- CraigMcQueen 2024-12-22 01:42:27
Adding the tables and other extensions can be easily hand-coded. See Python Markdown Extra for extensions in standard installs of Python Markdown. These extensions can be activated in Jason Fruit's parser by changing one line in his text_markdown.py: change "output_html = markdown(self.raw)" to "output_html = markdown(self.raw, ['extra'])" - worked for me anyway -- TDM
Suggest adding the option to configure this and other options via configuration file. see: http://pythonhosted.org/Markdown/reference.html#markdown safe_mode='replace' seems like a sensible default. Modified version: modified-text_markdown.py -- rupi 2013-08-25