Changes between Version 1 and Version 2 of WikiRestructuredText


Ignore:
Timestamp:
01/24/08 16:33:03 (12 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiRestructuredText

    v1 v2  
    77 
    88=== Requirements === 
    9 Note that to activate RST support in Trac, the python docutils package must be installed. 
     9Note that to activate RST support in Trac, the python docutils package must be installed.  
    1010If not already available on your operating system, you can download it at the [http://docutils.sourceforge.net/rst.html RST Website]. 
    1111 
     
    1818 
    1919== Using RST in Trac == 
    20 To specify that a block of text should be parsed using RST, use the ''rst'' processor. 
     20To specify that a block of text should be parsed using RST, use the ''rst'' processor.  
    2121 
    2222=== TracLinks in reStructuredText === 
     
    3434 }}} 
    3535 
    36  For a complete example of all uses of the ''trac''-directive, please see WikiRestructuredTextLinks. 
     36 For a complete example of all uses of the ''trac''-directive, please see WikiRestructuredTextLinks.  
    3737 
    3838 
     
    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