Changes between Version 1 and Version 2 of WikiRestructuredText
- Timestamp:
- 10/20/08 09:40:49 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredText
v1 v2 84 84 }}} 85 85 86 === Wiki Macros in reStructuredText === 86 87 87 === Example === 88 For doing [WikiMacros Wiki Macros] in ReST you use the same directive as for syntax highlighting i.e 89 code-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:: RecentChanges 98 99 Trac,3 100 101 }}} 102 }}} 103 104 Will result in the below: 105 106 [[RecentChanges(Trac,3)]] 107 108 Or a more concise Wiki Macro like syntax is also available: 109 110 {{{ 111 {{{ 112 #!rst 113 114 :code-block:`RecentChanges:Trac,3` 115 }}} 116 }}} 117 118 === Bigger ReST Example === 88 119 The example below should be mostly self-explanatory: 89 120 {{{ … … 111 142 ------------- 112 143 113 See also ticket |#42|. 114 115 .. |#42| trac:: #42 144 See also ticket `#42`:trac:. 116 145 117 146 .. _webpage: http://docutils.sourceforge.net/rst.html … … 143 172 ------------- 144 173 145 See also ticket |#42|. 146 147 .. |#42| trac:: #42 174 See also ticket `#42`:trac:. 148 175 149 176 .. _webpage: http://docutils.sourceforge.net/rst.html