diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-21 15:41:58 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-21 15:41:58 +0100 |
commit | cf306f34e5e23a1416b598766ca73d63d7367283 (patch) | |
tree | 613436b15ead24eaa2a56becc91e9d474c31ba8e /test | |
parent | 430e2db9baa222dbf87ea664ec2d995640817b70 (diff) | |
download | pandoc-cf306f34e5e23a1416b598766ca73d63d7367283.tar.gz |
Plain writer: use _(..) or ^(..) for super/subscript...
...unless unicode super/subscripted characters are available.
Diffstat (limited to 'test')
-rw-r--r-- | test/writer.opml | 2 | ||||
-rw-r--r-- | test/writer.plain | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/writer.opml b/test/writer.opml index 0b621823e..51b0cb2d5 100644 --- a/test/writer.opml +++ b/test/writer.opml @@ -46,7 +46,7 @@ </outline> <outline text="HTML Blocks" _note="Simple block on one line: foo And nested without indentation: foo bar Interpreted markdown in a table: This is *emphasized* And this is **strong** Here’s a simple block: foo This should be a code block, though: <div> foo </div> As should this: <div>foo</div> Now, nested: foo This should just be an HTML comment: Multiline: Code block: <!-- Comment --> Just plain comment, with trailing spaces on the line: Code: <hr /> Hr’s: ------------------------------------------------------------------------"> </outline> -<outline text="Inline Markup" _note="This is *emphasized*, and so *is this*. This is **strong**, and so **is this**. An *[emphasized link](/url)*. ***This is strong and em.*** So is ***this*** word. ***This is strong and em.*** So is ***this*** word. This is code: `>`, `$`, `\`, `\$`, `<html>`. This is *strikeout*. Superscripts: abcd a*hello* ahello there. Subscripts: H₂O, H₂₃O, Hmany of themO. These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d. ------------------------------------------------------------------------"> +<outline text="Inline Markup" _note="This is *emphasized*, and so *is this*. This is **strong**, and so **is this**. An *[emphasized link](/url)*. ***This is strong and em.*** So is ***this*** word. ***This is strong and em.*** So is ***this*** word. This is code: `>`, `$`, `\`, `\$`, `<html>`. This is *strikeout*. Superscripts: a^(bc)d a^(*hello*) a^(hello there). Subscripts: H₂O, H₂₃O, H_(many of them)O. These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d. ------------------------------------------------------------------------"> </outline> <outline text="Smart quotes, ellipses, dashes" _note="“Hello,” said the spider. “‘Shelob’ is my name.” ‘A’, ‘B’, and ‘C’ are letters. ‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’ ‘He said, “I want to go.”’ Were you alive in the 70’s? Here is some quoted ‘`code`’ and a “[quoted link](http://example.com/?foo=1&bar=2)”. Some dashes: one—two — three—four — five. Dashes between numbers: 5–7, 255–66, 1987–1999. Ellipses…and…and…. ------------------------------------------------------------------------"> </outline> diff --git a/test/writer.plain b/test/writer.plain index f34af9100..175efb608 100644 --- a/test/writer.plain +++ b/test/writer.plain @@ -448,9 +448,9 @@ This is code: >, $, \, \$, <html>. ~~This is _strikeout_.~~ -Superscripts: abcd a_hello_ ahello there. +Superscripts: a^(bc)d a^(_hello_) a^(hello there). -Subscripts: H₂O, H₂₃O, Hmany of themO. +Subscripts: H₂O, H₂₃O, H_(many of them)O. These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d. |