[[PageOutline(2-5,Contents,pullout)]] = Markdown !WikiProcessor Macro Implementation == Description The !MarkdownMacro package implements John Gruber's [http://daringfireball.net/projects/markdown/ Markdown] lightweight plain text-to-HTML formatting syntax as a [WikiProcessors wiki processor] macro. The original code is courtesy of Alex Mizrahi aka [#SeeAlso 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 [http://pythonhosted.org/Markdown/extensions/tables.html Table extension] is also enabled. See also: * John Gruber's [http://daringfireball.net/projects/markdown/ Markdown]. * [http://www.freewisdom.org/projects/python-markdown/ Python Markdown]. * [http://daringfireball.net/projects/markdown/syntax Markdown syntax]. == Bugs/Feature Requests Existing bugs and feature requests for MarkdownMacro are [query:status!=closed&component=MarkdownMacro&order=priority here]. If you have any issues, create a [/newticket?component=MarkdownMacro new ticket]. [[TicketQuery(component=MarkdownMacro,group=type,format=progress)]] == Download Download the zipped source from [export:markdownmacro here]. == Source You can check out MarkdownMacro from [/svn/markdownmacro here] using Subversion, or [source:markdownmacro browse the source] with Trac. == Installation First you need to install [http://freewisdom.org/projects/python-markdown/ Python Markdown]. Follow the instructions on the Web site. General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. Enable the macro in your `trac.ini` file: {{{#!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"). A table: First Header | Second Header ------------- | ------------- Content Cell | Content Cell Content Cell | Content Cell }}} }}} == Recent Changes [[ChangeLog(markdownmacro, 3)]] == Author/Contributors '''Author:''' [wiki:dwclifton] (Macro/Processor package, setup, documentation) [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:''' * [http://daringfireball.net/colophon/ John Gruber] * [http://www.freewisdom.org/projects/python-markdown/Credits Yuri Takhteyev, et al.] * Alex Mizrahi alias [/attachment/ticket/353/Markdown.py killer_storm]