Skip to content

Markdown nested lists are not indented properly #3679

@iamcam

Description

@iamcam

Prettier 1.9.2
Playground link

--parser markdown

Input:

# Markdown Test

* A lit item
    * Bitbucket markdown requires 4 spaces for nested list items (https://stackoverflow.com/a/37594372)
* Pretter indents to 2 spaces (tab width doesn't seem to affect it)

Output:

# Markdown Test

* A lit item
  * Bitbucket markdown requires 4 spaces for nested list items (https://stackoverflow.com/a/37594372)
* Pretter indents to 2 spaces (tab width doesn't seem to affect it)

Expected behavior:

The nested list items require 4 spaces for proper display formatting in Bitbucket (likely others. see this SO https://stackoverflow.com/editing-help#advanced-lists )

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.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions