jgm/pandoc — pull request #456 by gmaslov (2012-03-25 02:22:21+00:00)
Title: Implement the RST default-role directive

The default-role feature of RST makes math-heavy text much nicer-looking and easier to type, like this:

.. default-role:: math

Now you can type `E=mc^2` without having to prepend a ":math:" every time.

.. default-role:: sup

It also works for other roles like `superscript`, if that's useful somehow.

The modifications to `Text.Pandoc.Readers.RST.interpreted` also allow explicit role markers to appear on either side of the text: :math:\`like this\` or \`like this\`:math: (specified at http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#interpreted-text). The default default role is "title-reference", also as (vaguely and noncommittally) specified.