Changes between Version 34 and Version 35 of MarkdownMacro
- Timestamp:
- May 30, 2021, 9:45:37 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MarkdownMacro
v34 v35 14 14 * Footnotes. 15 15 * Tables. 16 * Markdown as [#MarkdownasWikiLanguage default wiki language]. 16 17 17 18 Example of its [#usage usage]: … … 81 82 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 82 83 83 Enable the macro in your `trac.ini` file: 84 {{{#!ini 85 [components] 86 tracmarkdown.macro.markdownformatter = disabled 87 tracmarkdown.macro.markdownmacro = enabled 88 }}} 89 90 If you want to use markdown without 91 wrapping the text in a [WikiProcessors WikiProcessor]: 84 Enable the macro and the wiki page formatter in your `trac.ini` file. This can also be done using the plugin admin page. 92 85 {{{#!ini 93 86 [components] 94 87 tracmarkdown.macro.markdownformatter = enabled 95 tracmarkdown.macro.markdownmacro = disabled 96 }}} 97 98 The `markdownformatter` and `markdownmacro` components are mutually 99 exclusive and should not be both enabled. 88 tracmarkdown.macro.markdownmacro = enabled 89 }}} 90 91 == Configuration 92 93 The following may be set in `trac.ini`. 94 95 {{{#!ini 96 [markdown] 97 root_pages = Docs, Note 98 tab_length = 4 99 }}} 100 101 {{{#!tr 102 {{{#!td 103 `root_pages` 104 }}} 105 {{{#!td 106 List of wiki page names to be used as root pages for a page hierarchy. Wiki subpages of these roots will use Markdown as the default wiki language.[[BR]][[BR]]For example if the list contains `Docs, Note` the wiki pages `Docs/MyDocument` and `Note/FirstNote` will use Markdown; the wiki page `NoteOne` will use Trac WikiFormatting. 107 108 Example: 109 {{{#!ini 110 [markdown] 111 root_pages = Docs, Note 112 }}} 113 **Note:** page names are case sensitive. 114 }}} 115 {{{#!td 116 (no default) 117 }}} 118 }}} 119 {{{#!tr 120 {{{#!td 121 `tab_length` 122 }}} 123 {{{#!td 124 Specify the length of tabs in the markdown source. This affects the display of multiple paragraphs in list items, including sub-lists, blockquotes, code blocks, etc. 125 }}} 126 {{{#!td 127 4 128 }}} 129 }}} 100 130 101 131 == Usage … … 276 306 === Using !WikiMacros 277 307 278 **Note:** this is a Trac addition308 **Note:** this is a Trac extension 279 309 280 310 Tracs WikiMacros can be used like with normal Trac wiki syntax. … … 290 320 }}} 291 321 }}} 322 323 == Markdown as Wiki Language 324 325 You may specify a list of wiki page names to be used as !root pages for a page hierarchy. Wiki subpages of these roots will use Markdown as the default wiki language. 326 327 For example if the list contains `Docs, Note` the wiki pages `Docs/MyDocument` and `Note/FirstNote` will use Markdown; the wiki page `NoteOne` will use Trac WikiFormatting. 328 329 Example: 330 {{{#!ini 331 [markdown] 332 root_pages = Docs, Note 333 }}} 334 335 **Note:** page names are case sensitive. 292 336 293 337 == Recent Changes