aboutsummaryrefslogtreecommitdiff
path: root/tests/rst-reader.rst
diff options
context:
space:
mode:
authorGreg Maslov <gmaslov@bootis.org>2012-03-24 21:30:10 -0400
committerGreg Maslov <gmaslov@bootis.org>2012-03-24 21:48:54 -0400
commit618dc294f93f1865dcdfbfda21003745b4d6b389 (patch)
tree5054a79a2c3ea79dfa7d33d8cb078cf9f4964d51 /tests/rst-reader.rst
parent3c4e1ff063100cbdf27f911fcbedbb842adf2af4 (diff)
downloadpandoc-618dc294f93f1865dcdfbfda21003745b4d6b389.tar.gz
Add parsing support for the rST default-role directive.
Diffstat (limited to 'tests/rst-reader.rst')
-rw-r--r--tests/rst-reader.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index cfebd2054..d06d70907 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -565,3 +565,21 @@ display math:
All done.
+Default-Role
+============
+
+Try changing the default role to a few different things.
+
+.. default-role:: math
+
+Inline math: `E=mc^2` or :math:`E=mc^2` or `E=mc^2`:math:.
+Other roles: :sup:`super`, `sub`:sub:.
+
+.. default-role:: sup
+
+Some `of` these :sup:`words` are in `superscript`:sup:.
+
+Reset default-role to the default default.
+
+.. default-role::
+