7 | | 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. |
| 7 | This macro 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. |
| 8 | |
| 9 | Example of its usage: |
| 10 | |
| 11 | {{{ |
| 12 | {{{ |
| 13 | #!Markdown |
| 14 | |
| 15 | # RGB |
| 16 | |
| 17 | + Red |
| 18 | + Green |
| 19 | + Blue |
| 20 | |
| 21 | ## Source Code |
| 22 | |
| 23 | from trac.core import * |
| 24 | from trac.wiki.macros import WikiMacroBase |
| 25 | from trac.wiki.formatter import Formatter |
| 26 | |
| 27 | An example [link](http://example.com/ "With a Title"). |
| 28 | |
| 29 | A table: |
| 30 | |
| 31 | First Header | Second Header |
| 32 | ------------- | ------------- |
| 33 | Content Cell | Content Cell |
| 34 | Content Cell | Content Cell |
| 35 | }}} |
| 36 | }}} |