Search code examples
markuprestructuredtext

symbols in restructuredText


I want to use some symbols in restructuredText; how can I do this? (e.g. → in Markdown yields the "→" symbol as defined in the list of standard HTML character entities -- see also w3c reference)

Note: I don't want to require math formula support as a dependency.


Solution

  • You have a large number of defined symbols via the "substitution" operator.

    You have to include the definitions via .. include:: <isonum.txt> or something similar.

    Most of them have the form |larr| or |rarr|.

    They are defined in the docutils.parsers.rst.include installation directory. There are dozens of files which define numerous Unicode characters.