Skip to content

Indented unordered lists formatted wrong if tab rather than spaces #8364

@trinkel

Description

@trinkel

I have searched for this and while I found other issues that may be related, this seems different.

If my editor (VS Code) uses tabs for indenting, indented unordered list items loose their line returns. If the editor is set to use spaces for indenting it seems to be ok.

Prettier 2.0.5
Playground link

--parser markdown
--use-tabs

Input:

- I am Fine
- Well, not really
- Wanna know why
- Not really
	- Oops
	- There goes another rubber tree plan.

Output:

- I am Fine
- Well, not really
- Wanna know why
- Not really - Oops - There goes another rubber tree plan.

Expected behavior:

  • I am Fine
  • Well, not really
  • Wanna know why
  • Not really
    • Oops
    • There goes another rubber tree plan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions