From d7169c715d9a78a9a95acdebf089c1ee08f55dd8 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sun, 19 Oct 2014 16:42:56 -0700
Subject: Parsing:  fixed `inlineMath` so it handles `\text{..}` containing
 `$`.

For example: `$x = \text{the $n$th root of $y$}`.  Closes #1677.
---
 tests/markdown-reader-more.native | 1 +
 tests/markdown-reader-more.txt    | 2 ++
 2 files changed, 3 insertions(+)

(limited to 'tests')

diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native
index 30da0afbb..b4303dacb 100644
--- a/tests/markdown-reader-more.native
+++ b/tests/markdown-reader-more.native
@@ -17,6 +17,7 @@
 ,Header 3 ("my-header",[],[]) [Str "my",Space,Str "header"]
 ,Header 2 ("in-math",[],[]) [Str "$",Space,Str "in",Space,Str "math"]
 ,Para [Math InlineMath "\\$2 + \\$3"]
+,Para [Math InlineMath "x = \\text{the $n$th root of $y$}"]
 ,Para [Str "This",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "math:"]
 ,Para [Str "$PATH",Space,Str "90",Space,Str "$PATH"]
 ,Header 2 ("commented-out-list-item",[],[]) [Str "Commented-out",Space,Str "list",Space,Str "item"]
diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt
index c486f8885..4c3c99cf7 100644
--- a/tests/markdown-reader-more.txt
+++ b/tests/markdown-reader-more.txt
@@ -60,6 +60,8 @@
 
 $\$2 + \$3$
 
+$x = \text{the $n$th root of $y$}$
+
 This should not be math:
 
 $PATH 90 $PATH
-- 
cgit v1.2.3