question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Markdown ordered list has double space

See original GitHub issue

Prettier 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:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

14reactions
j-f1commented, Apr 23, 2018

@dawnmist We recommend disabling any lint rules that conflict with Prettier.

9reactions
gandalfsaxecommented, Jul 23, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found