Changes between Version 1 and Version 2 of WikiRestructuredText
- Timestamp:
- 12/14/08 02:34:15 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredText
v1 v2 9 9 Note that to activate RST support in Trac, the python docutils package must be installed. 10 10 If not already available on your operating system, you can download it at the [http://docutils.sourceforge.net/rst.html RST Website]. 11 12 Install docutils using `easy_install docutils`. Do not use the package manager of your OS (e.g. `apt-get install python-docutils`), because Trac will not find docutils then. 11 13 12 14 === More information on RST === … … 84 86 }}} 85 87 86 === Wiki Macros in reStructuredText ===88 === Wiki Macros in reStructuredText === 87 89 88 For doing WikiMacros in ReST you use the same directive as for syntax highlightning i.e89 code-block. To work you must use a version of trac that has #801applied.90 For doing [WikiMacros Wiki Macros] in ReST you use the same directive as for syntax highlighting i.e 91 code-block. To work you must use a version of trac that has [trac:ticket:801 #801] applied. 90 92 91 === Wiki Macro Example ===93 === Wiki Macro Example === 92 94 93 95 {{{ … … 95 97 #!rst 96 98 97 .. code-block:: HelloWorld 98 99 Something I wanted to say 99 .. code-block:: RecentChanges 100 100 101 Trac,3 101 102 102 103 }}} 103 104 }}} 104 105 105 Will result in the below .106 Will result in the below: 106 107 107 [[HelloWorld(Something I wanted to say)]]108 [[RecentChanges(Trac,3)]] 108 109 110 Or a more concise Wiki Macro like syntax is also available: 111 112 {{{ 113 {{{ 114 #!rst 115 116 :code-block:`RecentChanges:Trac,3` 117 }}} 118 }}} 109 119 110 120 === Bigger ReST Example ===