Markdown WikiProcessor Macro Implementation
Description
The MarkdownMacro package implements John Gruber's Markdown lightweight plain text-to-HTML formatting syntax as a WikiProcessor macro. The original code is courtesy of Alex Mizrahi aka killer_storm. I simply added a little robustness to the error checking, documented the package, created setup.py and this README, and registered it with Trac Hacks.
Installation
First you need to install Python Markdown. Follow the instructions on the Web site.
Then download the attached zipfile, unpack it to a temporary location, visit the 0.11 directory and run:
python setup.py bdist_egg cp dist/*.egg /trac/env/Project/plugins
Configuration
Enable the macro in:
/trac/env/Project/conf/trac.ini:
[components] Markdown.* = enabled
You may have to restart your Web server.
Example
{{{ #!Markdown # RGB + Red + Green + Blue ## Source Code from trac.core import * from trac.wiki.macros import WikiMacroBase from trac.wiki.formatter import Formatter An example [link](http://example.com/ "With a Title"). }}}
Source
- Browse the source at: GitHub.
- Public clone URL:
git clone git://github.com/dwclifton/tracmarkdownmacro.git
See Also
- John Gruber's Markdown
- Python Markdown
- Markdown.py by Alex Mizrahi aka killer_storm
- Markdown syntax
Bugs/Feature Requests
Existing bugs and feature requests for MarkdownMacro are here.
If you have any issues, create a new ticket.
Recent Changes
[5074] by dwclifton on 12/31/08 00:46:54
New hack MarkdownMacro, created by dwclifton
Author/Contributors
- Author: dwclifton (Macro/Processor package, setup, documentation)
- Contributors:
- John Gruber
- Yuri Takhteyev, et al.
- Alex Mizrahi alias killer_storm
- The Trac and Python development community
Attachments
- markdownmacro.zip (3.2 kB) -
Package zipfile.
, added by dwclifton on 12/31/08 05:40:09.