wiki:MarkdownMacro

Version 3 (modified by dwclifton, 6 years ago) (diff)

--

Markdown WikiProcessor Macro Implementation

Description

The MarkdownMacro package implements John Gruber's Markdown lightweight plain text-to-HTML formatting syntax as a Trac WikiProcessor macro.

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

Bugs/Feature Requests

Existing bugs and feature requests for MarkdownMacro are here.

If you have any issues, create a new ticket.

Recent Changes

[13924] by rjollos on 2014-05-12 04:16:23
Fixed indentation using reindent.py. Refs #11743.
[13265] by rjollos on 2013-06-06 08:46:39
PEP-0008 changes.
[13245] by rjollos on 2013-05-27 06:03:13
Added license headers and license text.

Author/Contributors