Changes between Version 1 and Version 2 of WikiRestructuredText
- Timestamp:
- Dec 7, 2010, 10:14:18 PM (14 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 === … … 22 24 === TracLinks in reStructuredText === 23 25 24 * Trac provides a custom RST reference-directive 'trac'to allow TracLinks from within RST text.26 * Trac provides a custom RST directive `trac::` to allow TracLinks from within RST text. 25 27 26 28 Example: … … 34 36 }}} 35 37 36 For a complete example of all uses of the ''trac''-directive, please see WikiRestructuredTextLinks. 37 38 39 * Trac allows an even easier way of creating TracLinks in RST, using the custom '':trac:'' link naming scheme. 38 * Trac allows an even easier way of creating TracLinks in RST, using the custom `:trac:` role. 40 39 41 40 Example: … … 49 48 }}} 50 49 50 For a complete example of all uses of the `:trac:` role, please see WikiRestructuredTextLinks. 51 52 51 53 === Syntax highlighting in reStructuredText === 52 54 53 There is a directive for doing TracSyntaxColoring in R eST as well. The directive is called55 There is a directive for doing TracSyntaxColoring in RST as well. The directive is called 54 56 code-block 55 57 … … 86 88 === Wiki Macros in reStructuredText === 87 89 88 For doing [WikiMacros Wiki Macros] in R eST you use the same directive as for syntax highlighting i.e89 code-block. To work you must use a version of trac that has #801applied.90 For doing [WikiMacros Wiki Macros] in RST 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 93 === Wiki Macro Example === … … 116 118 }}} 117 119 118 === Bigger R eST Example ===120 === Bigger RST Example === 119 121 The example below should be mostly self-explanatory: 120 122 {{{