Version 17 (modified by Ryan J Ollos, 4 years ago) (diff)

Refs #10763.

Markdown WikiProcessor Macro Implementation


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 and this README, and registered it with Trac Hacks. The Table extension is also enabled.

Bugs/Feature Requests

Existing bugs and feature requests for MarkdownMacro are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:markdownmacro here].


You can check out WikiSearchMacro from here using Subversion, or browse the source with Trac.


First you need to install Python Markdown. Follow the instructions on the Web site.

Proceed to install the plugin as described in t:TracPlugins.

Enable the macro in trac.ini:

Markdown.* = enabled

You may have to restart your Web server.




+ Red
+ Green
+ Blue

## Source Code

    from trac.core import *
    from import WikiMacroBase
    from import Formatter

An example [link]( "With a Title").

A table:

First Header  | Second Header
------------- | -------------
Content Cell  | Content Cell
Content Cell  | Content Cell

See Also

Recent Changes

16481 by rjollos on 2017-04-10 21:53:37
TracMarkdownMacro 0.11.6: Allow tab_length to be configured

Patch by j.femia@….

Fixes #13143.

16092 by rjollos on 2016-12-18 04:42:12
0.11.5: Handle case in which HREF regex does not find a match

Fixes #12996.

13924 by rjollos on 2014-05-12 02:16:23
Fixed indentation using Refs #11743.