diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-09-19 12:09:51 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-09-21 12:37:42 -0700 |
commit | c266734448544a118ed80e47deaa2590131c7f84 (patch) | |
tree | d5793b1dc732456894c96e8ee6829dab9d539388 /test/writer.muse | |
parent | 5f7e7f539a02818d0a94309b15d648d51d1eaee6 (diff) | |
download | pandoc-c266734448544a118ed80e47deaa2590131c7f84.tar.gz |
Use pretty-simple to format native output.
Previously we used our own homespun formatting. But this
produces over-long lines that aren't ideal for diffs in tests.
Easier to use something off-the-shelf and standard.
Closes #7580.
Performance is slower by about a factor of 10, but this isn't
really a problem because native isn't suitable as a serialization
format. (For serialization you should use json, because the reader
is so much faster than native.)
Diffstat (limited to 'test/writer.muse')
-rw-r--r-- | test/writer.muse | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/writer.muse b/test/writer.muse index d9efdddd5..2c96f6bf2 100644 --- a/test/writer.muse +++ b/test/writer.muse @@ -483,8 +483,8 @@ Superscripts: a<sup>bc</sup>d a<sup>*hello*</sup> a<sup>hello there</sup>. Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O. -These should not be superscripts or subscripts, because of the unescaped -spaces: a^b c^d, a~b c~d. +These should not be superscripts or subscripts, because of the unescaped spaces: +a^b c^d, a~b c~d. ---- @@ -643,8 +643,7 @@ Foo [[/url/][biz]]. ** With ampersands -Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the -URL]]. +Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the URL]]. Here’s a link with an amersand in the link text: [[http://att.com/][AT&T]]. @@ -686,9 +685,8 @@ Here is a movie [[movie.jpg][movie]] icon. * Footnotes -Here is a footnote reference,[1] and another.[2] This should *not* be a -footnote reference, because it contains a space.[^my note] Here is an inline -note.[3] +Here is a footnote reference,[1] and another.[2] This should *not* be a footnote +reference, because it contains a space.[^my note] Here is an inline note.[3] <quote> Notes can go in quotes.[4] @@ -703,8 +701,8 @@ This paragraph should not be part of the note, as it is not indented. [2] Here’s the long note. This one contains multiple blocks. - Subsequent blocks are indented to show that they belong to the footnote - (as with list items). + Subsequent blocks are indented to show that they belong to the footnote (as + with list items). <example> { <code> } |