Markdown WikiProcessor Macro Implementation

Notice: This plugin is unmaintained and available for adoption.


This macro implements John Gruber's Markdown lightweight plain text-to-HTML formatting syntax as a wiki processor macro.

Example of its usage:



+ 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

Alternatively, enabling the MarkdownEverywhere component will render wiki content as Markdown throughout Trac, without needing to wrap the text in a WikiProcessor. See installation for details.

See also:

Bugs/Feature Requests

Existing bugs and feature requests for MarkdownMacro are here.

If you have any issues, create a new ticket.


5 / 8


2 / 3


Download the zipped source from here.

The plugin is also available on PyPI.


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


First you need to install the Python Markdown package. 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:

tracmarkdown.macro.markdowneverywhere = disabled
tracmarkdown.macro.markdownmacro = enabled

If you want to use markdown everywhere without wrapping the text in a WikiProcessor:

tracmarkdown.macro.markdowneverywhere = enabled
tracmarkdown.macro.markdownmacro = disabled

Recent Changes

17937 by rjollos on 2020-12-11 22:03:11
TracMarkdownMacro 0.11.9dev: Add Markdown to install reqs
17936 by rjollos on 2020-12-11 21:58:45
TracMarkdownMacro 0.11.9dev: Rename package

This avoids a conflict with the Markdown

17935 by rjollos on 2020-12-11 21:49:02
TracMarkdownMacro 0.11.9dev: Rename package

This follows the lowercase naming convention for the
package directory.



Author: dwclifton (Macro/Processor package, setup, documentation)
Maintainer: none (needsadoption)

Last modified 6 weeks ago Last modified on Dec 11, 2020, 10:03:25 PM