Changes between Version 1 and Version 2 of WikiRestructuredText
- Timestamp:
- Apr 9, 2008, 4:17:48 PM (17 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 [TracWikiMacros 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:: HelloWorld 98 99 Something I wanted to say 100 101 102 }}} 103 }}} 104 105 Will result in the below: 106 107 [[HelloWorld(Something I wanted to say)]] 108 109 Or 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 === 88 120 The example below should be mostly self-explanatory: 89 121 {{{ … … 111 143 ------------- 112 144 113 See also ticket |#42|. 114 115 .. |#42| trac:: #42 145 See also ticket `#42`:trac:. 116 146 117 147 .. _webpage: http://docutils.sourceforge.net/rst.html … … 143 173 ------------- 144 174 145 See also ticket |#42|. 146 147 .. |#42| trac:: #42 175 See also ticket `#42`:trac:. 148 176 149 177 .. _webpage: http://docutils.sourceforge.net/rst.html