diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-03-25 11:19:57 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-03-25 11:19:57 -0700 |
commit | a2e5de1d1180c196f6b4bdfdfcadc80911e2b7c6 (patch) | |
tree | b53fcae960d48c8984e1cc41039a5a9369fa8611 /tests/rst-reader.rst | |
parent | 3c4e1ff063100cbdf27f911fcbedbb842adf2af4 (diff) | |
parent | 4a1ba8ce49ffc3c2a154721dc18fc48896f97f59 (diff) | |
download | pandoc-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.rst | 28 |
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. + |