Edgewall Software

Changes between Version 30 and Version 31 of WikiRestructuredText


Ignore:
Timestamp:
Oct 20, 2015, 9:25:14 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • WikiRestructuredText

    v30 v31  
    1 = reStructuredText Support in Trac =
     1= reStructuredText Support in Trac
     2
     3== Introduction
     4
    25[[TranslatedPages]]
    36
     
    58
    69From the reStucturedText webpage:
    7  "''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. ''"
     10 "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."
    811
    912If you want a file from your Subversion repository to be displayed as reStructuredText in the Trac source browser, set `text/x-rst` as the value for the Subversion property `svn:mime-type`. See [trac:source:/trunk/INSTALL this example].
    1013
    11 === Requirements ===
     14=== Requirements
     15
    1216To activate RST support in Trac, install the python docutils package: `easy_install docutils`. If not already available on your operating system, you can download it at the [http://docutils.sourceforge.net/rst.html RST Website].
    1317
    1418Do not use the package manager of your OS, eg `apt-get install python-docutils`, because Trac will not find docutils then.
    1519
    16 === More information on RST ===
     20=== More information on RST
    1721
    1822 * reStructuredText Website -- http://docutils.sourceforge.net/rst.html
    1923 * RST Quick Reference -- http://docutils.sourceforge.net/docs/rst/quickref.html
    2024
    21 ----
    22 
    23 == Using RST in Trac ==
     25== Using RST in Trac
     26
    2427To specify that a block of text should be parsed using RST, use the ''rst'' processor.
    2528
    26 === TracLinks in reStructuredText ===
     29=== TracLinks in reStructuredText
    2730
    2831 * Trac provides a custom RST directive `trac::` to allow TracLinks from within RST text.
     
    7073 For a complete example of all uses of the `:trac:` role, please see WikiRestructuredTextLinks.
    7174
    72 === Syntax highlighting in reStructuredText ===
     75=== Syntax highlighting in reStructuredText
    7376
    7477There is a directive for doing TracSyntaxColoring in RST as well. The directive is called code-block:
     
    105108Note the need to indent the code at least one character after the `.. code-block` directive.
    106109
    107 === Wiki Macros in reStructuredText ===
     110=== Wiki Macros in reStructuredText
    108111
    109112To enable [WikiMacros Wiki Macros] in RST, you use the same directive as for syntax highlighting, ie code-block:
     
    153156}}}
    154157
    155 === Bigger RST Example ===
     158=== Bigger RST Example
     159
    156160The example below should be self-explanatory:
    157161