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.

Bugs/Feature Requests

Existing bugs and feature requests for MarkdownMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Installation

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:

[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").
}}}

See Also

Recent Changes

[12086] by rjollos on 10/01/12 23:29:45

Refs #9157, #10278: Updated documentation now that macro is hosted in t-h.o.

[12085] by rjollos on 10/01/12 23:18:01

Fixes #9157, #10278: (0.11.2)

  • FIX: Allowed syntax for compiling a regular expression has changed by Python 2.6. Thanks to ringare and sdegrande for the patch.
  • Misc minor refactoring.
  • Updated documentation by copying the wiki page into README.

[12084] by rjollos on 10/01/12 22:40:20

Refs #10278: Renamed 0.11 directory to trunk.

[11328] by rjollos on 02/26/12 08:37:36

Added content of zip file previously attached to the project wiki page.

Author/Contributors