diff options
Diffstat (limited to 'tests/rst-reader.rst')
-rw-r--r-- | tests/rst-reader.rst | 18 |
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:: + |