Changes between Version 1 and Version 2 of WikiRestructuredText


Ignore:
Timestamp:
Apr 9, 2008, 4:17:48 PM (17 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiRestructuredText

    v1 v2  
    8484}}}
    8585
     86=== Wiki Macros in reStructuredText ===
    8687
    87 === Example ===
     88For doing [TracWikiMacros Wiki Macros] in ReST you use the same directive as for syntax highlighting i.e
     89code-block. To work you must use a version of trac that has #801 applied.
     90
     91=== Wiki Macro Example ===
     92
     93{{{
     94{{{
     95#!rst
     96
     97.. code-block:: HelloWorld
     98 
     99   Something I wanted to say
     100
     101
     102}}}
     103}}}
     104
     105Will result in the below:
     106
     107    [[HelloWorld(Something I wanted to say)]]
     108
     109Or a more concise WikiMacro like syntax is also available:
     110
     111{{{
     112{{{
     113#!rst
     114
     115:code-block:`HelloWorld:Something I wanted to say`
     116}}}
     117}}}
     118
     119=== Bigger ReST Example ===
    88120The example below should be mostly self-explanatory:
    89121{{{
     
    111143-------------
    112144
    113 See also ticket |#42|.
    114 
    115 .. |#42| trac:: #42
     145See also ticket `#42`:trac:.
    116146
    117147.. _webpage: http://docutils.sourceforge.net/rst.html
     
    143173-------------
    144174
    145 See also ticket |#42|.
    146 
    147 .. |#42| trac:: #42
     175See also ticket `#42`:trac:.
    148176
    149177.. _webpage: http://docutils.sourceforge.net/rst.html