Changes between Version 33 and Version 34 of MarkdownMacro
- Timestamp:
- May 30, 2021, 4:06:00 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MarkdownMacro
v33 v34 5 5 == Description 6 6 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. 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. It comes with Markdown extensions to better integrate with the Trac wiki. 8 9 * Supports WikiProcessors in Markdown text. 10 * It's possible to use WikiMacros. 11 * Supports TracLinks. 12 * Syntax highlighting for source code if enabled in Trac. 13 * Full support for inline HTML and [https://python-markdown.github.io/extensions/md_in_html/ Markdown in HTML]. 14 * Footnotes. 15 * Tables. 8 16 9 17 Example of its [#usage usage]: … … 208 216 === Using !WikiProcessors 209 217 210 **Note:** this is a Trac addition 218 You may use WikiProcessors in your Markdown text by either 219 * use [#Codefencesyntax Code fence] syntax 220 * or use Trac WikiProcessors syntax 221 222 When using `Code fence` syntax your text will better work with other Markdown editors because any !WikiProcessor content will be shown as preformatted text. 223 224 ==== Code fence syntax 225 Use the Markdown code fence syntax like this: 226 227 228 {{{ 229 ```python 230 def function(): 231 foo = 1 232 ``` 233 }}} 234 235 or with parameters: 236 237 {{{ 238 ```div style="border: 1px solid blue;" 239 Some text in a blue box. 240 ``` 241 }}} 242 243 Note that this ''may'' break presentation in other editors. 244 245 Like with Tracs WikiProcessors the first line of the content may be used for parameters: 246 {{{ 247 ``` 248 #!div style="border: 1px solid blue;" 249 Some text in a blue box. 250 ``` 251 }}} 252 ==== Trac !WikiProcessor syntax 253 254 **Note:** this is a Trac only extension. 211 255 212 256 WikiProcessors can be used without any special escape syntax. Just add the processor to the Markdown text.