diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-07-15 20:41:27 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-07-15 20:41:27 +0000 |
commit | 7c35c0bc253c3ca15c29adf3309f08a42b99127c (patch) | |
tree | 7e991fb37e7866a48533aa23892287a61949596a /tests/writer.man | |
parent | 235e41f2464afbee31463f0edcd3a6ca579b7cfb (diff) | |
download | pandoc-7c35c0bc253c3ca15c29adf3309f08a42b99127c.tar.gz |
Fixed bug in Markdown parser: regular $s triggering math mode.
For example: "shoes ($20) and socks ($5)."
The fix consists in two new restrictions:
+ the $ that ends a math span may not be directly followed by a digit.
+ no blank lines may be included within a math span.
Thanks to Joseph Reagle for noticing the bug.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1326 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/writer.man')
-rw-r--r-- | tests/writer.man | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/writer.man b/tests/writer.man index 0e3b7608a..d1a8b8a86 100644 --- a/tests/writer.man +++ b/tests/writer.man @@ -570,6 +570,8 @@ To get the famous equation, write \f[B]$e\ =\ mc^2$\f[]\. $22,000 is a \f[I]lot\f[] of money\. So is $34,000\. (It worked if \[lq]lot\[rq] is emphasized\.) .IP \[bu] 2 +Shoes ($20) and socks ($5)\. +.IP \[bu] 2 Escaped \f[B]$\f[]: $73 \f[I]this should be emphasized\f[] 23$\. .PP Here's a LaTeX table: |