diff options
author | John MacFarlane <jgm@berkeley.edu> | 2013-10-18 17:50:43 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2013-10-18 17:50:43 -0700 |
commit | e5feed00f7edb0d79f717ec9815c57df696a992e (patch) | |
tree | 09a95f48a013fcf710dcc5e9919d1eb72a75427f /tests | |
parent | 1f29f4678e0a1b1272704e5ddafa0bee45e5e426 (diff) | |
download | pandoc-e5feed00f7edb0d79f717ec9815c57df696a992e.tar.gz |
MediaWiki reader: Trim contents of `<math>` tags.
Otherwise we get problems when converting to markdown.
Closes #1027.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mediawiki-reader.native | 1 | ||||
-rw-r--r-- | tests/mediawiki-reader.wiki | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/mediawiki-reader.native b/tests/mediawiki-reader.native index 5ddbd309f..0ab51a3aa 100644 --- a/tests/mediawiki-reader.native +++ b/tests/mediawiki-reader.native @@ -163,6 +163,7 @@ Pandoc (Meta {unMeta = fromList []}) ,[Plain [Str "The",Space,Str "Hague"]]] ,Header 2 ("",[],[]) [Str "math"] ,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Math InlineMath "x=\\frac{y^\\pi}{z}",Str "."] +,Para [Str "With",Space,Str "spaces:",Space,Math InlineMath "x=\\frac{y^\\pi}{z}",Str "."] ,Header 2 ("",[],[]) [Str "preformatted",Space,Str "blocks"] ,Para [Code ("",[],[]) "Start\160each\160line\160with\160a\160space.",LineBreak,Code ("",[],[]) "Text\160is\160",Strong [Code ("",[],[]) "preformatted"],Code ("",[],[]) "\160and",LineBreak,Emph [Code ("",[],[]) "markups"],Code ("",[],[]) "\160",Strong [Emph [Code ("",[],[]) "can"]],Code ("",[],[]) "\160be\160done."] ,Para [Code ("",[],[]) "\160hell\160\160\160\160\160\160yeah"] diff --git a/tests/mediawiki-reader.wiki b/tests/mediawiki-reader.wiki index 1e885daf0..26f4ef164 100644 --- a/tests/mediawiki-reader.wiki +++ b/tests/mediawiki-reader.wiki @@ -248,6 +248,8 @@ ends the list. Here is some <math>x=\frac{y^\pi}{z}</math>. +With spaces: <math> x=\frac{y^\pi}{z} </math>. + == preformatted blocks == Start each line with a space. |