Changes between Version 33 and Version 34 of MarkdownMacro


Ignore:
Timestamp:
May 30, 2021, 4:06:00 PM (3 years ago)
Author:
Cinc-th
Comment:

Documented Code Fence syntax for WikiProcessors. Some more general Description with feature list.

Legend:

Unmodified
Added
Removed
Modified
  • MarkdownMacro

    v33 v34  
    55== Description
    66
    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.
     7This 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.
    816
    917Example of its [#usage usage]:
     
    208216=== Using !WikiProcessors
    209217
    210 **Note:** this is a Trac addition
     218You may use WikiProcessors in your Markdown text by either
     219* use [#Codefencesyntax Code fence] syntax
     220* or use Trac WikiProcessors syntax
     221
     222When 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
     225Use the Markdown code fence syntax like this:
     226
     227
     228{{{
     229```python
     230def function():
     231    foo = 1
     232```
     233}}}
     234
     235or with parameters:
     236
     237{{{
     238```div style="border: 1px solid blue;"
     239Some text in a blue box.
     240```
     241}}}
     242
     243Note that this ''may'' break presentation in other editors.
     244
     245Like with Tracs WikiProcessors the first line of the content may be used for parameters:
     246{{{
     247```
     248#!div style="border: 1px solid blue;"
     249Some text in a blue box.
     250```
     251}}}
     252==== Trac !WikiProcessor syntax
     253
     254**Note:** this is a Trac only extension.
    211255
    212256WikiProcessors can be used without any special escape syntax. Just add the processor to the Markdown text.