Changes between Version 5 and Version 6 of WikiRestructuredText
- Timestamp:
- Dec 2, 2009, 4:25:41 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredText
v5 v6 5 5 From the reStucturedText webpage: 6 6 "''reStructuredText is an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser system. It is useful for in-line program documentation (such as Python docstrings), for quickly creating simple web pages, and for standalone documents. reStructuredText is designed for extensibility for specific application domains. ''" 7 8 If you want a file from your Subversion repository be displayed as reStructuredText in Trac's source browser, set `text/x-rst` as value for the Subversion property `svn:mime-type`. See [trac:source:/trunk/INSTALL this example]. 7 9 8 10 === Requirements === … … 24 26 === TracLinks in reStructuredText === 25 27 26 * Trac provides a custom RST reference-directive 'trac'to allow TracLinks from within RST text.28 * Trac provides a custom RST directive `trac::` to allow TracLinks from within RST text. 27 29 28 30 Example: … … 36 38 }}} 37 39 38 For a complete example of all uses of the ''trac''-directive, please see WikiRestructuredTextLinks. 39 40 41 * Trac allows an even easier way of creating TracLinks in RST, using the custom '':trac:'' link naming scheme. 40 * Trac allows an even easier way of creating TracLinks in RST, using the custom `:trac:` role. 42 41 43 42 Example: … … 51 50 }}} 52 51 52 For a complete example of all uses of the `:trac:` role, please see WikiRestructuredTextLinks. 53 54 53 55 === Syntax highlighting in reStructuredText === 54 56 55 There is a directive for doing TracSyntaxColoring in R eST as well. The directive is called57 There is a directive for doing TracSyntaxColoring in RST as well. The directive is called 56 58 code-block 57 59 … … 88 90 === Wiki Macros in reStructuredText === 89 91 90 For doing [WikiMacros Wiki Macros] in R eST you use the same directive as for syntax highlighting i.e91 code-block. To work you must use a version of trac that has #801applied.92 For doing [WikiMacros Wiki Macros] in RST you use the same directive as for syntax highlighting i.e 93 code-block. To work you must use a version of trac that has [trac:ticket:801 #801] applied. 92 94 93 95 === Wiki Macro Example === … … 118 120 }}} 119 121 120 === Bigger R eST Example ===122 === Bigger RST Example === 121 123 The example below should be mostly self-explanatory: 122 124 {{{