aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-03-24 15:53:57 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-03-24 15:53:57 -0700
commit9352750cb24b672e869e7351df9875d5fa8bf7f9 (patch)
tree5d979b63659c8c30b98c69d186cada19a7846a44 /tests
parent4c2249ea8905d708fb61c82fa86fd67a503d7832 (diff)
downloadpandoc-9352750cb24b672e869e7351df9875d5fa8bf7f9.tar.gz
RST writer: Better handling of inline formatting.
* `hi*there*hi` now gets rendered properly as `hi\ *there*\ hi` * Unnecessary '\ ' are avoided around :math:, :sub:, :sup: * Implemented most of the rules in http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules, though some unnecessary '\ ' may be inserted when unicode quotes are used.
Diffstat (limited to 'tests')
-rw-r--r--tests/writer.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/writer.rst b/tests/writer.rst
index 09fd8dcb3..8d7c7915c 100644
--- a/tests/writer.rst
+++ b/tests/writer.rst
@@ -563,7 +563,7 @@ This is code: ``>``, ``$``, ``\``, ``\$``, ``<html>``.
[STRIKEOUT:This is *strikeout*.]
-Superscripts: a\ :sup:`bc`\ d a\ :sup:`*hello*`\ a\ :sup:`hello there`\ .
+Superscripts: a\ :sup:`bc`\ d a\ :sup:`*hello*` a\ :sup:`hello there`.
Subscripts: H\ :sub:`2`\ O, H\ :sub:`23`\ O, H\ :sub:`many of them`\ O.
@@ -602,12 +602,12 @@ LaTeX
- :math:`x \in y`
- :math:`\alpha \wedge \omega`
- :math:`223`
-- :math:`p`\ -Tree
+- :math:`p`-Tree
- Here’s some display math:
.. math:: \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
-- Here’s one that has a line break in it: :math:`\alpha + \omega \times x^2`\ .
+- Here’s one that has a line break in it: :math:`\alpha + \omega \times x^2`.
These shouldn’t be math: