Markdown ordered list has double space
See original GitHub issuePrettier 1.11.1 Playground link
--parser markdown
Input:
# Markdown test
1. foo
2. bar
3. baz
Output:
# Markdown test
1. foo
2. bar
3. baz
Expected behavior:
# Markdown test
1. foo
2. bar
3. baz
Issue Analytics
- State:
- Created 6 years ago
- Reactions:15
- Comments:24 (11 by maintainers)
Top Results From Across the Web
How to remove extra line space on GitHub markdown bullets ...
You need to indent the sublist with at least 4 spaces: 1. First item * subitem 2. Second item.
Read more >How to write nested numbered lists - Meta Stack Exchange
To put other Markdown blocks in a list; just indent four spaces for each nesting level ... The important thing is the double...
Read more >Markdown Tutorial - Nested Lists - CommonMark
To nest one list within another, indent each item in the sublist by four spaces. You can also nest other elements like paragraphs,...
Read more >Basic Syntax - Markdown Guide
Markdown applications don't agree on how to handle a missing space between the number signs ( # ) and the heading name. For...
Read more >Markdown Syntax - dotCMS
Blank Lines · To add a single extra line after a paragraph, add two extra spaces ( ) at the end of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dawnmist We recommend disabling any lint rules that conflict with Prettier.
I can’t understand this decision. You went against what literally all other markdown stylesguides/linters I’ve seen with this double space after unordered list symbols for what - slightly better aligned content for 10+ lists?
Did you consider what percentage of all lists in markdown are actually 10+ items? I’m guessing way less than 10%. Two spaces in front of unordered lists just looks very weird, non-standard and in no way pretty. Hope this can be reconsidered.