wiki:MarkdownMacro

Markdown WikiProcessor Macro Implementation

Description

The MarkdownMacro package implements John Gruber's Markdown lightweight plain text-to-HTML formatting syntax as a wiki processor macro. The original code is courtesy of Alex Mizrahi aka killer_storm. This plugin has higher robustness to the error checking, documentation of the package, a setup.py file and this README file added. The Table extension is also enabled.

See also:

Bugs/Feature Requests

Existing bugs and feature requests for MarkdownMacro are here.

If you have any issues, create a new ticket.

defect

2 / 5

enhancement

1 / 2

Download

Download the zipped source from here.

Source

You can check out MarkdownMacro 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.

General instructions on installing Trac plugins can be found on the TracPlugins page.

Enable the macro in your trac.ini file:

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

A table:

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

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.
(more)

Author/Contributors

Author: dwclifton (Macro/Processor package, setup, documentation)
Maintainer: Ryan J Ollos
Contributors:

Last modified 8 months ago Last modified on Jan 27, 2016, 7:10:42 AM