diff options
| author | John MacFarlane <[email protected]> | 2025-02-12 09:41:20 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-02-12 09:41:20 -0800 |
| commit | 0fe62545358a373e4e22fa2421dd51dcc4400123 (patch) | |
| tree | 8437f587bb390193eb72786616c69ada343895f8 /test/command | |
| parent | 1a8db18d6a2b7d649c3d3a22da1f8e289f6b1ddb (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/command')
| -rw-r--r-- | test/command/10484.md | 12 | ||||
| -rw-r--r-- | test/command/3487.md | 2 | ||||
| -rw-r--r-- | test/command/3596.md | 30 | ||||
| -rw-r--r-- | test/command/5705.md | 2 | ||||
| -rw-r--r-- | test/command/5857.md | 6 | ||||
| -rw-r--r-- | test/command/5967.md | 4 | ||||
| -rw-r--r-- | test/command/6858.md | 4 | ||||
| -rw-r--r-- | test/command/7172.md | 17 | ||||
| -rw-r--r-- | test/command/7329.md | 18 | ||||
| -rw-r--r-- | test/command/8131.md | 2 | ||||
| -rw-r--r-- | test/command/8150.md | 18 | ||||
| -rw-r--r-- | test/command/8402.md | 16 | ||||
| -rw-r--r-- | test/command/9908.md | 6 | ||||
| -rw-r--r-- | test/command/tasklist.md | 4 | ||||
| -rw-r--r-- | test/command/toc.md | 12 |
15 files changed, 85 insertions, 68 deletions
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 |
