summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-07-16 10:14:43 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-07-16 10:58:44 -0700
commit26748da6d4fc6912f1ef314fb01f9969d8a5fc59 (patch)
tree1655690c6a56b7cded016216cba179237f2b9576 /tests
parentf68b05e74b7cc0dd0e217cc2650169a3fe7a41a0 (diff)
Don't recognize inline-markup starts inside words.
For example, "2*2 = 4*1" should not contain an emphasized section. Added test case for "Literal symbols". Closes #569.
Diffstat (limited to 'tests')
-rw-r--r--tests/rst-reader.native4
-rw-r--r--tests/rst-reader.rst4
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index bf794c849..c99e73f07 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -320,4 +320,6 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":
,Para [Math DisplayMath "\\alpha = beta",Math DisplayMath "E = mc^2"]
,Para [Str "Some",Space,Superscript [Str "of"],Space,Str "these",Space,Superscript [Str "words"],Space,Str "are",Space,Str "in",Space,Superscript [Str "superscript"],Str "."]
,Para [Str "Reset",Space,Str "default",Str "-",Str "role",Space,Str "to",Space,Str "the",Space,Str "default",Space,Str "default",Str "."]
-,Para [Str "And",Space,Str "now",Space,Str "`",Str "some",Str "-",Str "invalid",Str "-",Str "string",Str "-",Str "3231231",Str "`",Space,Str "is",Space,Str "nonsense",Str "."]]
+,Para [Str "And",Space,Str "now",Space,Str "`",Str "some",Str "-",Str "invalid",Str "-",Str "string",Str "-",Str "3231231",Str "`",Space,Str "is",Space,Str "nonsense",Str "."]
+,Header 2 [Str "Literal",Space,Str "symbols"]
+,Para [Str "2",Str "*",Str "2",Space,Str "=",Space,Str "4",Str "*",Str "1"]]
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index abe6d4f69..4d81ccb85 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -593,3 +593,7 @@ Reset default-role to the default default.
And now `some-invalid-string-3231231` is nonsense.
+Literal symbols
+---------------
+
+2*2 = 4*1