aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-02-12 09:41:20 -0800
committerJohn MacFarlane <[email protected]>2025-02-12 09:41:20 -0800
commit0fe62545358a373e4e22fa2421dd51dcc4400123 (patch)
tree8437f587bb390193eb72786616c69ada343895f8 /test
parent1a8db18d6a2b7d649c3d3a22da1f8e289f6b1ddb (diff)
Markdown writer: omit extra space after bullets.
We used to insert extra spaces to ensure that the content respected the four-space rule. That is not really necessary now, since pandoc's markdown and most markdowns don't follow the four-space rule. Those who want the old behavior can obtain it by using `-t markdown+four_space_rule`. Closes #7172.
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Writers/Markdown.hs2
-rw-r--r--test/command/10484.md12
-rw-r--r--test/command/3487.md2
-rw-r--r--test/command/3596.md30
-rw-r--r--test/command/5705.md2
-rw-r--r--test/command/5857.md6
-rw-r--r--test/command/5967.md4
-rw-r--r--test/command/6858.md4
-rw-r--r--test/command/7172.md17
-rw-r--r--test/command/7329.md18
-rw-r--r--test/command/8131.md2
-rw-r--r--test/command/8150.md18
-rw-r--r--test/command/8402.md16
-rw-r--r--test/command/9908.md6
-rw-r--r--test/command/tasklist.md4
-rw-r--r--test/command/toc.md12
-rw-r--r--test/writer.markdown106
-rw-r--r--test/writer.opml12
-rw-r--r--test/writer.plain105
19 files changed, 197 insertions, 181 deletions
diff --git a/test/Tests/Writers/Markdown.hs b/test/Tests/Writers/Markdown.hs
index ad1835f4d..8c772cec5 100644
--- a/test/Tests/Writers/Markdown.hs
+++ b/test/Tests/Writers/Markdown.hs
@@ -45,7 +45,7 @@ tests = [ "indented code after list"
, "list with tight sublist"
=: bulletList [ plain "foo" <> bulletList [ plain "bar" ],
plain "baz" ]
- =?> "- foo\n - bar\n- baz\n"
+ =?> "- foo\n - bar\n- baz\n"
] ++ [noteTests] ++ [shortcutLinkRefsTests]
{-
diff --git a/test/command/10484.md b/test/command/10484.md
index 510446aa4..979517e9c 100644
--- a/test/command/10484.md
+++ b/test/command/10484.md
@@ -13,10 +13,10 @@
__ https://github.com/joe/project/issues/999
^D
-- One issue fixed: [issue
- 123](https://github.com/joe/project/issues/123).
-- One change merged: [Big
- change](https://github.com/joe/project/pull/234).
-- Improved the [home page](https://example.com/homepage).
-- One more [small change](https://github.com/joe/project/issues/999).
+- One issue fixed: [issue
+ 123](https://github.com/joe/project/issues/123).
+- One change merged: [Big
+ change](https://github.com/joe/project/pull/234).
+- Improved the [home page](https://example.com/homepage).
+- One more [small change](https://github.com/joe/project/issues/999).
```
diff --git a/test/command/3487.md b/test/command/3487.md
index 1d475676f..65d6f22e7 100644
--- a/test/command/3487.md
+++ b/test/command/3487.md
@@ -7,5 +7,5 @@ Some text
^D
Some text
-- element
+- element
```
diff --git a/test/command/3596.md b/test/command/3596.md
index 01a871e1b..972395ef7 100644
--- a/test/command/3596.md
+++ b/test/command/3596.md
@@ -6,9 +6,9 @@
<li>baz</li>
</ul>
^D
-- foo
-- bar
-- baz
+- foo
+- bar
+- baz
```
```
@@ -19,10 +19,10 @@
<li>baz</li>
</ul>
^D
-- foo
-- bar
- - subbar
-- baz
+- foo
+- bar
+ - subbar
+- baz
```
@@ -34,9 +34,9 @@
<li>baz</li>
</ul>
^D
-- foo
-- [bar]{#id}
-- baz
+- foo
+- [bar]{#id}
+- baz
```
@@ -48,12 +48,12 @@
<li><p>baz</p></li>
</ul>
^D
-- foo
+- foo
-- ::: {#id}
- bar
- :::
+- ::: {#id}
+ bar
+ :::
-- baz
+- baz
```
diff --git a/test/command/5705.md b/test/command/5705.md
index 589910669..a8923999d 100644
--- a/test/command/5705.md
+++ b/test/command/5705.md
@@ -6,6 +6,6 @@
[[Plain [Str "Blah"]]]]]]
^D
VIII. Blah
- - Blah
+ - Blah
```
diff --git a/test/command/5857.md b/test/command/5857.md
index 31320cd12..5f15ce3d6 100644
--- a/test/command/5857.md
+++ b/test/command/5857.md
@@ -5,7 +5,7 @@
,[]
,[Plain [Str "b"]]]]
^D
-- a
--
-- b
+- a
+-
+- b
```
diff --git a/test/command/5967.md b/test/command/5967.md
index 9bb802d40..fb4e63e50 100644
--- a/test/command/5967.md
+++ b/test/command/5967.md
@@ -4,8 +4,8 @@
## Two
#### Four
^D
-- One
- - Two
+- One
+ - Two
One
diff --git a/test/command/6858.md b/test/command/6858.md
index 53cb9bddb..3428157ff 100644
--- a/test/command/6858.md
+++ b/test/command/6858.md
@@ -46,7 +46,7 @@ hi
there
^D
-- hi
+- hi
-- there
+- there
```
diff --git a/test/command/7172.md b/test/command/7172.md
new file mode 100644
index 000000000..a7b5a4c1c
--- /dev/null
+++ b/test/command/7172.md
@@ -0,0 +1,17 @@
+```
+% pandoc -t markdown
+- one
+ - two
+^D
+- one
+ - two
+```
+
+```
+% pandoc -t markdown+four_space_rule
+- one
+ - two
+^D
+- one
+ - two
+```
diff --git a/test/command/7329.md b/test/command/7329.md
index 9ed9c52ff..b5f590d7b 100644
--- a/test/command/7329.md
+++ b/test/command/7329.md
@@ -55,13 +55,13 @@ Doe, John. 2005. /First Book/. Cambridge: Cambridge University Press.
- [cite:@item1; @item2]
- [cite:see @item1; @item2]
^D
-- @item1
-- @item1 [p. 12]
-- @item1 [p.12; see also @item2]
-- [@item1]
-- [-@item1]
-- [see @item1 p. 12]
-- [see @item1 p. 12 and *passim*]
-- [@item1; @item2]
-- [see @item1; @item2]
+- @item1
+- @item1 [p. 12]
+- @item1 [p.12; see also @item2]
+- [@item1]
+- [-@item1]
+- [see @item1 p. 12]
+- [see @item1 p. 12 and *passim*]
+- [@item1; @item2]
+- [see @item1; @item2]
```
diff --git a/test/command/8131.md b/test/command/8131.md
index 6820542f6..02f6edc92 100644
--- a/test/command/8131.md
+++ b/test/command/8131.md
@@ -19,7 +19,7 @@ Content
Content
^D
-- [Head](#head)
+- [Head](#head)
# Head
diff --git a/test/command/8150.md b/test/command/8150.md
index 5034bed1e..36865dbcf 100644
--- a/test/command/8150.md
+++ b/test/command/8150.md
@@ -11,11 +11,11 @@ Nested bullet lists
<li>L4</li>
</ul>
^D
-- L1
-- L2
- - L3.1
- - L3.2
-- L4
+- L1
+- L2
+ - L3.1
+ - L3.2
+- L4
```
Nested ordered lists
@@ -48,8 +48,8 @@ Ordered list nested below an unordered list
</ol>
</ul>
^D
-- L1
-- L2
- 1. L3.1
- 2. L3.2
+- L1
+- L2
+ 1. L3.1
+ 2. L3.2
```
diff --git a/test/command/8402.md b/test/command/8402.md
index 67536227c..aa5fd880c 100644
--- a/test/command/8402.md
+++ b/test/command/8402.md
@@ -19,14 +19,14 @@ text
## inner 3
text
^D
-- [Summary](#summary){#toc-summary}
- - [Overview and
- Explanation](#overview-and-explanation){#toc-overview-and-explanation}
-- [Details](#details){#toc-details}
- - [inner 1](#inner-1){#toc-inner-1}
- - [inner 2](#inner-2){#toc-inner-2}
- - [inner inner 1](#inner-inner-1){#toc-inner-inner-1}
- - [inner 3](#inner-3){#toc-inner-3}
+- [Summary](#summary){#toc-summary}
+ - [Overview and
+ Explanation](#overview-and-explanation){#toc-overview-and-explanation}
+- [Details](#details){#toc-details}
+ - [inner 1](#inner-1){#toc-inner-1}
+ - [inner 2](#inner-2){#toc-inner-2}
+ - [inner inner 1](#inner-inner-1){#toc-inner-inner-1}
+ - [inner 3](#inner-3){#toc-inner-3}
::: {#6u8qXoeFGdqt .cell .markdown}
# Summary
diff --git a/test/command/9908.md b/test/command/9908.md
index 9954298e0..a4aa2cdd6 100644
--- a/test/command/9908.md
+++ b/test/command/9908.md
@@ -4,7 +4,7 @@
[ [ BlockQuote [ Para [ Str "a" ] , Para [ Str "b" ] ] ] ]
]
^D
-- > a
- >
- > b
+- > a
+ >
+ > b
```
diff --git a/test/command/tasklist.md b/test/command/tasklist.md
index 9aaa0a8aa..177845aac 100644
--- a/test/command/tasklist.md
+++ b/test/command/tasklist.md
@@ -100,6 +100,6 @@ round trip:
- [ ] foo
- [x] bar
^D
-- [ ] foo
-- [x] bar
+- [ ] foo
+- [x] bar
``` \ No newline at end of file
diff --git a/test/command/toc.md b/test/command/toc.md
index 7474955e5..e681e93af 100644
--- a/test/command/toc.md
+++ b/test/command/toc.md
@@ -16,12 +16,12 @@
## e
:::
^D
-- [A](#a){#toc-a}
- - [b](#b){#toc-b}
-- [B](#b-1){#toc-b-1}
- - [b](#b-2){#toc-b-2}
-- [E](#e){#toc-e}
- - [e](#e-1){#toc-e-1}
+- [A](#a){#toc-a}
+ - [b](#b){#toc-b}
+- [B](#b-1){#toc-b-1}
+ - [b](#b-2){#toc-b-2}
+- [E](#e){#toc-e}
+ - [e](#e-1){#toc-e-1}
# A
diff --git a/test/writer.markdown b/test/writer.markdown
index 37b233622..1ecb10679 100644
--- a/test/writer.markdown
+++ b/test/writer.markdown
@@ -105,45 +105,45 @@ And:
Asterisks tight:
-- asterisk 1
-- asterisk 2
-- asterisk 3
+- asterisk 1
+- asterisk 2
+- asterisk 3
Asterisks loose:
-- asterisk 1
+- asterisk 1
-- asterisk 2
+- asterisk 2
-- asterisk 3
+- asterisk 3
Pluses tight:
-- Plus 1
-- Plus 2
-- Plus 3
+- Plus 1
+- Plus 2
+- Plus 3
Pluses loose:
-- Plus 1
+- Plus 1
-- Plus 2
+- Plus 2
-- Plus 3
+- Plus 3
Minuses tight:
-- Minus 1
-- Minus 2
-- Minus 3
+- Minus 1
+- Minus 2
+- Minus 3
Minuses loose:
-- Minus 1
+- Minus 1
-- Minus 2
+- Minus 2
-- Minus 3
+- Minus 3
## Ordered
@@ -187,17 +187,17 @@ Multiple paragraphs:
## Nested
-- Tab
- - Tab
- - Tab
+- Tab
+ - Tab
+ - Tab
Here's another:
1. First
2. Second:
- - Fee
- - Fie
- - Foe
+ - Fee
+ - Fie
+ - Foe
3. Third
Same thing but with paragraphs:
@@ -206,21 +206,21 @@ Same thing but with paragraphs:
2. Second:
- - Fee
- - Fie
- - Foe
+ - Fee
+ - Fie
+ - Foe
3. Third
## Tabs and spaces
-- this is a list item indented with tabs
+- this is a list item indented with tabs
-- this is a list item indented with spaces
+- this is a list item indented with spaces
- - this is an example list item indented with tabs
+ - this is an example list item indented with tabs
- - this is an example list item indented with spaces
+ - this is an example list item indented with spaces
## Fancy list markers
@@ -521,23 +521,23 @@ Ellipses...and...and....
# LaTeX
-- `\cite[22-23]{smith.1899}`{=tex}
-- $2+2=4$
-- $x \in y$
-- $\alpha \wedge \omega$
-- $223$
-- $p$-Tree
-- Here's some display math:
- $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
-- Here's one that has a line break in it: $\alpha + \omega \times x^2$.
+- `\cite[22-23]{smith.1899}`{=tex}
+- $2+2=4$
+- $x \in y$
+- $\alpha \wedge \omega$
+- $223$
+- $p$-Tree
+- Here's some display math:
+ $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
+- Here's one that has a line break in it: $\alpha + \omega \times x^2$.
These shouldn't be math:
-- To get the famous equation, write `$e = mc^2$`.
-- \$22,000 is a *lot* of money. So is \$34,000. (It worked if "lot" is
- emphasized.)
-- Shoes (\$20) and socks (\$5).
-- Escaped `$`: \$73 *this should be emphasized* 23\$.
+- To get the famous equation, write `$e = mc^2$`.
+- \$22,000 is a *lot* of money. So is \$34,000. (It worked if "lot" is
+ emphasized.)
+- Shoes (\$20) and socks (\$5).
+- Escaped `$`: \$73 *this should be emphasized* 23\$.
Here's a LaTeX table:
@@ -553,11 +553,11 @@ Cat & 1 \\ \hline
Here is some unicode:
-- I hat: Î
-- o umlaut: ö
-- section: §
-- set membership: ∈
-- copyright: ©
+- I hat: Î
+- o umlaut: ö
+- section: §
+- set membership: ∈
+- copyright: ©
AT&T has an ampersand in their name.
@@ -661,9 +661,9 @@ Here's an [inline link in pointy braces](/script?foo=1&bar=2).
With an ampersand: <http://example.com/?foo=1&bar=2>
-- In a list?
-- <http://example.com/>
-- It should.
+- In a list?
+- <http://example.com/>
+- It should.
An e-mail address: <[email protected]>
diff --git a/test/writer.opml b/test/writer.opml
index f7961e817..89f4b6fee 100644
--- a/test/writer.opml
+++ b/test/writer.opml
@@ -31,13 +31,13 @@
<outline text="Code Blocks" _note="Code:&#10;&#10; ---- (should be four hyphens)&#10;&#10; sub status {&#10; print &quot;working&quot;;&#10; }&#10;&#10; this code block is indented by one tab&#10;&#10;And:&#10;&#10; this code block is indented by two tabs&#10;&#10; These should not be escaped: \$ \\ \&gt; \[ \{&#10;&#10;--------------------------------------------------------------------------------">
</outline>
<outline text="Lists">
- <outline text="Unordered" _note="Asterisks tight:&#10;&#10;- asterisk 1&#10;- asterisk 2&#10;- asterisk 3&#10;&#10;Asterisks loose:&#10;&#10;- asterisk 1&#10;&#10;- asterisk 2&#10;&#10;- asterisk 3&#10;&#10;Pluses tight:&#10;&#10;- Plus 1&#10;- Plus 2&#10;- Plus 3&#10;&#10;Pluses loose:&#10;&#10;- Plus 1&#10;&#10;- Plus 2&#10;&#10;- Plus 3&#10;&#10;Minuses tight:&#10;&#10;- Minus 1&#10;- Minus 2&#10;- Minus 3&#10;&#10;Minuses loose:&#10;&#10;- Minus 1&#10;&#10;- Minus 2&#10;&#10;- Minus 3">
+ <outline text="Unordered" _note="Asterisks tight:&#10;&#10;- asterisk 1&#10;- asterisk 2&#10;- asterisk 3&#10;&#10;Asterisks loose:&#10;&#10;- asterisk 1&#10;&#10;- asterisk 2&#10;&#10;- asterisk 3&#10;&#10;Pluses tight:&#10;&#10;- Plus 1&#10;- Plus 2&#10;- Plus 3&#10;&#10;Pluses loose:&#10;&#10;- Plus 1&#10;&#10;- Plus 2&#10;&#10;- Plus 3&#10;&#10;Minuses tight:&#10;&#10;- Minus 1&#10;- Minus 2&#10;- Minus 3&#10;&#10;Minuses loose:&#10;&#10;- Minus 1&#10;&#10;- Minus 2&#10;&#10;- Minus 3">
</outline>
<outline text="Ordered" _note="Tight:&#10;&#10;1. First&#10;2. Second&#10;3. Third&#10;&#10;and:&#10;&#10;1. One&#10;2. Two&#10;3. Three&#10;&#10;Loose using tabs:&#10;&#10;1. First&#10;&#10;2. Second&#10;&#10;3. Third&#10;&#10;and using spaces:&#10;&#10;1. One&#10;&#10;2. Two&#10;&#10;3. Three&#10;&#10;Multiple paragraphs:&#10;&#10;1. Item 1, graf one.&#10;&#10; Item 1. graf two. The quick brown fox jumped over the lazy dog's back.&#10;&#10;2. Item 2.&#10;&#10;3. Item 3.">
</outline>
- <outline text="Nested" _note="- Tab&#10; - Tab&#10; - Tab&#10;&#10;Here's another:&#10;&#10;1. First&#10;2. Second:&#10; - Fee&#10; - Fie&#10; - Foe&#10;3. Third&#10;&#10;Same thing but with paragraphs:&#10;&#10;1. First&#10;&#10;2. Second:&#10;&#10; - Fee&#10; - Fie&#10; - Foe&#10;&#10;3. Third">
+ <outline text="Nested" _note="- Tab&#10; - Tab&#10; - Tab&#10;&#10;Here's another:&#10;&#10;1. First&#10;2. Second:&#10; - Fee&#10; - Fie&#10; - Foe&#10;3. Third&#10;&#10;Same thing but with paragraphs:&#10;&#10;1. First&#10;&#10;2. Second:&#10;&#10; - Fee&#10; - Fie&#10; - Foe&#10;&#10;3. Third">
</outline>
- <outline text="Tabs and spaces" _note="- this is a list item indented with tabs&#10;&#10;- this is a list item indented with spaces&#10;&#10; - this is an example list item indented with tabs&#10;&#10; - this is an example list item indented with spaces">
+ <outline text="Tabs and spaces" _note="- this is a list item indented with tabs&#10;&#10;- this is a list item indented with spaces&#10;&#10; - this is an example list item indented with tabs&#10;&#10; - this is an example list item indented with spaces">
</outline>
<outline text="Fancy list markers" _note="(2) begins with 2&#10;&#10;(3) and now 3&#10;&#10; with a continuation&#10;&#10; iv. sublist with roman numerals, starting with 4&#10; v. more items&#10; (A) a subsublist&#10; (B) a subsublist&#10;&#10;Nesting:&#10;&#10;A. Upper Alpha&#10; I. Upper Roman.&#10; (6) Decimal start with 6&#10; c) Lower alpha with paren&#10;&#10;Autonumbering:&#10;&#10;1. Autonumber.&#10;2. More.&#10; 1. Nested.&#10;&#10;Should not be a list item:&#10;&#10;M.A. 2007&#10;&#10;B. Williams&#10;&#10;--------------------------------------------------------------------------------">
</outline>
@@ -50,9 +50,9 @@
</outline>
<outline text="Smart quotes, ellipses, dashes" _note="&quot;Hello,&quot; said the spider. &quot;'Shelob' is my name.&quot;&#10;&#10;'A', 'B', and 'C' are letters.&#10;&#10;'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'&#10;&#10;'He said, &quot;I want to go.&quot;' Were you alive in the 70's?&#10;&#10;Here is some quoted '`code`' and a &quot;[quoted&#10;link](http://example.com/?foo=1&amp;bar=2)&quot;.&#10;&#10;Some dashes: one---two --- three---four --- five.&#10;&#10;Dashes between numbers: 5--7, 255--66, 1987--1999.&#10;&#10;Ellipses...and...and....&#10;&#10;--------------------------------------------------------------------------------">
</outline>
-<outline text="LaTeX" _note="- `\cite[22-23]{smith.1899}`{=tex}&#10;- $2+2=4$&#10;- $x \in y$&#10;- $\alpha \wedge \omega$&#10;- $223$&#10;- $p$-Tree&#10;- Here's some display math:&#10; $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$&#10;- Here's one that has a line break in it: $\alpha + \omega \times x^2$.&#10;&#10;These shouldn't be math:&#10;&#10;- To get the famous equation, write `$e = mc^2$`.&#10;- \$22,000 is a *lot* of money. So is \$34,000. (It worked if &quot;lot&quot; is&#10; emphasized.)&#10;- Shoes (\$20) and socks (\$5).&#10;- Escaped `$`: \$73 *this should be emphasized* 23\$.&#10;&#10;Here's a LaTeX table:&#10;&#10;\begin{tabular}{|l|l|}\hline&#10;Animal &amp; Number \\ \hline&#10;Dog &amp; 2 \\&#10;Cat &amp; 1 \\ \hline&#10;\end{tabular}&#10;&#10;--------------------------------------------------------------------------------">
+<outline text="LaTeX" _note="- `\cite[22-23]{smith.1899}`{=tex}&#10;- $2+2=4$&#10;- $x \in y$&#10;- $\alpha \wedge \omega$&#10;- $223$&#10;- $p$-Tree&#10;- Here's some display math:&#10; $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$&#10;- Here's one that has a line break in it: $\alpha + \omega \times x^2$.&#10;&#10;These shouldn't be math:&#10;&#10;- To get the famous equation, write `$e = mc^2$`.&#10;- \$22,000 is a *lot* of money. So is \$34,000. (It worked if &quot;lot&quot; is&#10; emphasized.)&#10;- Shoes (\$20) and socks (\$5).&#10;- Escaped `$`: \$73 *this should be emphasized* 23\$.&#10;&#10;Here's a LaTeX table:&#10;&#10;\begin{tabular}{|l|l|}\hline&#10;Animal &amp; Number \\ \hline&#10;Dog &amp; 2 \\&#10;Cat &amp; 1 \\ \hline&#10;\end{tabular}&#10;&#10;--------------------------------------------------------------------------------">
</outline>
-<outline text="Special Characters" _note="Here is some unicode:&#10;&#10;- I hat: Î&#10;- o umlaut: ö&#10;- section: §&#10;- set membership: ∈&#10;- copyright: ©&#10;&#10;AT&amp;T has an ampersand in their name.&#10;&#10;AT&amp;T is another way to write it.&#10;&#10;This &amp; that.&#10;&#10;4 \&lt; 5.&#10;&#10;6 \&gt; 5.&#10;&#10;Backslash: \\&#10;&#10;Backtick: \`&#10;&#10;Asterisk: \*&#10;&#10;Underscore: \_&#10;&#10;Left brace: {&#10;&#10;Right brace: }&#10;&#10;Left bracket: \[&#10;&#10;Right bracket: \]&#10;&#10;Left paren: (&#10;&#10;Right paren: )&#10;&#10;Greater-than: \&gt;&#10;&#10;Hash: \#&#10;&#10;Period: .&#10;&#10;Bang: !&#10;&#10;Plus: +&#10;&#10;Minus: -&#10;&#10;--------------------------------------------------------------------------------">
+<outline text="Special Characters" _note="Here is some unicode:&#10;&#10;- I hat: Î&#10;- o umlaut: ö&#10;- section: §&#10;- set membership: ∈&#10;- copyright: ©&#10;&#10;AT&amp;T has an ampersand in their name.&#10;&#10;AT&amp;T is another way to write it.&#10;&#10;This &amp; that.&#10;&#10;4 \&lt; 5.&#10;&#10;6 \&gt; 5.&#10;&#10;Backslash: \\&#10;&#10;Backtick: \`&#10;&#10;Asterisk: \*&#10;&#10;Underscore: \_&#10;&#10;Left brace: {&#10;&#10;Right brace: }&#10;&#10;Left bracket: \[&#10;&#10;Right bracket: \]&#10;&#10;Left paren: (&#10;&#10;Right paren: )&#10;&#10;Greater-than: \&gt;&#10;&#10;Hash: \#&#10;&#10;Period: .&#10;&#10;Bang: !&#10;&#10;Plus: +&#10;&#10;Minus: -&#10;&#10;--------------------------------------------------------------------------------">
</outline>
<outline text="Links">
<outline text="Explicit" _note="Just a [URL](/url/).&#10;&#10;[URL and title](/url/ &quot;title&quot;).&#10;&#10;[URL and title](/url/ &quot;title preceded by two spaces&quot;).&#10;&#10;[URL and title](/url/ &quot;title preceded by a tab&quot;).&#10;&#10;[URL and title](/url/ &quot;title with &quot;quotes&quot; in it&quot;)&#10;&#10;[URL and title](/url/ &quot;title with single quotes&quot;)&#10;&#10;[with_underscore](/url/with_underscore)&#10;&#10;[Email link](mailto:[email protected])&#10;&#10;[Empty]().">
@@ -61,7 +61,7 @@
</outline>
<outline text="With ampersands" _note="Here's a [link with an ampersand in the URL](http://example.com/?foo=1&amp;bar=2).&#10;&#10;Here's a link with an amersand in the link text: [AT&amp;T](http://att.com/ &quot;AT&amp;T&quot;).&#10;&#10;Here's an [inline link](/script?foo=1&amp;bar=2).&#10;&#10;Here's an [inline link in pointy braces](/script?foo=1&amp;bar=2).">
</outline>
- <outline text="Autolinks" _note="With an ampersand: &lt;http://example.com/?foo=1&amp;bar=2&gt;&#10;&#10;- In a list?&#10;- &lt;http://example.com/&gt;&#10;- It should.&#10;&#10;An e-mail address: &lt;[email protected]&gt;&#10;&#10;&gt; Blockquoted: &lt;http://example.com/&gt;&#10;&#10;Auto-links should not occur here: `&lt;http://example.com/&gt;`&#10;&#10; or here: &lt;http://example.com/&gt;&#10;&#10;--------------------------------------------------------------------------------">
+ <outline text="Autolinks" _note="With an ampersand: &lt;http://example.com/?foo=1&amp;bar=2&gt;&#10;&#10;- In a list?&#10;- &lt;http://example.com/&gt;&#10;- It should.&#10;&#10;An e-mail address: &lt;[email protected]&gt;&#10;&#10;&gt; Blockquoted: &lt;http://example.com/&gt;&#10;&#10;Auto-links should not occur here: `&lt;http://example.com/&gt;`&#10;&#10; or here: &lt;http://example.com/&gt;&#10;&#10;--------------------------------------------------------------------------------">
</outline>
</outline>
<outline text="Images" _note="From &quot;Voyage dans la Lune&quot; by Georges Melies (1902):&#10;&#10;![lalune](lalune.jpg &quot;Voyage dans la Lune&quot;)&#10;&#10;Here is a movie ![movie](movie.jpg) icon.&#10;&#10;--------------------------------------------------------------------------------">
diff --git a/test/writer.plain b/test/writer.plain
index b9425f9c0..814f40776 100644
--- a/test/writer.plain
+++ b/test/writer.plain
@@ -101,45 +101,45 @@ Unordered
Asterisks tight:
-- asterisk 1
-- asterisk 2
-- asterisk 3
+- asterisk 1
+- asterisk 2
+- asterisk 3
Asterisks loose:
-- asterisk 1
+- asterisk 1
-- asterisk 2
+- asterisk 2
-- asterisk 3
+- asterisk 3
Pluses tight:
-- Plus 1
-- Plus 2
-- Plus 3
+- Plus 1
+- Plus 2
+- Plus 3
Pluses loose:
-- Plus 1
+- Plus 1
-- Plus 2
+- Plus 2
-- Plus 3
+- Plus 3
Minuses tight:
-- Minus 1
-- Minus 2
-- Minus 3
+- Minus 1
+- Minus 2
+- Minus 3
Minuses loose:
-- Minus 1
+- Minus 1
-- Minus 2
+- Minus 2
-- Minus 3
+- Minus 3
Ordered
@@ -183,17 +183,17 @@ Multiple paragraphs:
Nested
-- Tab
- - Tab
- - Tab
+- Tab
+ - Tab
+ - Tab
Here’s another:
1. First
2. Second:
- - Fee
- - Fie
- - Foe
+ - Fee
+ - Fie
+ - Foe
3. Third
Same thing but with paragraphs:
@@ -202,21 +202,21 @@ Same thing but with paragraphs:
2. Second:
- - Fee
- - Fie
- - Foe
+ - Fee
+ - Fie
+ - Foe
3. Third
Tabs and spaces
-- this is a list item indented with tabs
+- this is a list item indented with tabs
-- this is a list item indented with spaces
+- this is a list item indented with spaces
- - this is an example list item indented with tabs
+ - this is an example list item indented with tabs
- - this is an example list item indented with spaces
+ - this is an example list item indented with spaces
Fancy list markers
@@ -448,23 +448,22 @@ Ellipses…and…and….
LaTeX
--
-- 2 + 2 = 4
-- x ∈ y
-- α ∧ ω
-- 223
-- p-Tree
-- Here’s some display math:
- $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
-- Here’s one that has a line break in it: α + ω × x².
+-
+- 2 + 2 = 4
+- x ∈ y
+- α ∧ ω
+- 223
+- p-Tree
+- Here’s some display math:
+ $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
+- Here’s one that has a line break in it: α + ω × x².
These shouldn’t be math:
-- To get the famous equation, write $e = mc^2$.
-- $22,000 is a lot of money. So is $34,000. (It worked if “lot” is
- emphasized.)
-- Shoes ($20) and socks ($5).
-- Escaped $: $73 this should be emphasized 23$.
+- To get the famous equation, write $e = mc^2$.
+- $22,000 is a lot of money. So is $34,000. (It worked if “lot” is emphasized.)
+- Shoes ($20) and socks ($5).
+- Escaped $: $73 this should be emphasized 23$.
Here’s a LaTeX table:
@@ -474,11 +473,11 @@ Special Characters
Here is some unicode:
-- I hat: Î
-- o umlaut: ö
-- section: §
-- set membership: ∈
-- copyright: ©
+- I hat: Î
+- o umlaut: ö
+- section: §
+- set membership: ∈
+- copyright: ©
AT&T has an ampersand in their name.
@@ -582,9 +581,9 @@ Autolinks
With an ampersand: http://example.com/?foo=1&bar=2
-- In a list?
-- http://example.com/
-- It should.
+- In a list?
+- http://example.com/
+- It should.
An e-mail address: [email protected]