Version 6 (modified by sdsd, 18 years ago)

--

reStructuredText Support in Trac

Trac supports using reStructuredText (RST) as an alternative to wiki markup in any context WikiFormatting is used.

From the reStucturedText webpage:

"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. "

Requirements

Note that to activate RST support in Trac, the python docutils package must be installed. If not already available on your operating system, you can download it at the RST Website.

More information on RST


Using RST in Trac

To specify that a block of text should be parsed using RST, use the rst processor.

TracLinks in reStructuredText

  • Trac provides a custom RST reference-directive 'trac' to allow TracLinks from within RST text.

Example:

 #!html 
  <p style=display:none>
<a href="http://www.order-now.biz/">ultra herbal</a><br>
<a href="http://provillus.order-now.biz/">Provillus</a><br> Hair Loss Treatment for Men and Woman<br>
<a href="http://breastactives.order-now.biz/">Breast Actives</a><br>
<a href="http://eazol.order-now.biz/">Eazol</a><br>
<a href="http://freedietpills.order-now.biz/">free diet pills</a><br>

See also: WikiRestructuredTextLinks, WikiProcessors, WikiFormatting