aboutsummaryrefslogtreecommitdiff
path: root/tests/rst-reader.rst
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-03-25 11:19:57 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-03-25 11:19:57 -0700
commita2e5de1d1180c196f6b4bdfdfcadc80911e2b7c6 (patch)
treeb53fcae960d48c8984e1cc41039a5a9369fa8611 /tests/rst-reader.rst
parent3c4e1ff063100cbdf27f911fcbedbb842adf2af4 (diff)
parent4a1ba8ce49ffc3c2a154721dc18fc48896f97f59 (diff)
downloadpandoc-a2e5de1d1180c196f6b4bdfdfcadc80911e2b7c6.tar.gz
Merge pull request #456 from gmaslov/master
Implement the RST default-role directive
Diffstat (limited to 'tests/rst-reader.rst')
-rw-r--r--tests/rst-reader.rst28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index cfebd2054..abe6d4f69 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -565,3 +565,31 @@ display math:
All done.
+Default-Role
+============
+
+Try changing the default role to a few different things.
+
+.. default-role:: math
+
+Doesn't Break Title Parsing
+---------------------------
+
+Inline math: `E=mc^2` or :math:`E=mc^2` or `E=mc^2`:math:.
+Other roles: :sup:`super`, `sub`:sub:.
+
+.. math::
+ \alpha = beta
+
+ E = mc^2
+
+.. default-role:: sup
+
+Some `of` these :sup:`words` are in `superscript`:sup:.
+
+Reset default-role to the default default.
+
+.. default-role::
+
+And now `some-invalid-string-3231231` is nonsense.
+