Skip to content

gatsby-plugin-mdx: newline in the list causes whole list (at 3 or deeper indentation levels) rendered as code #28813

@Stvad

Description

@Stvad

Description

When rendering markdown newline in the list causes whole list (at 3 or deeper indentation levels) rendered as code

Steps to reproduce

Try rendering the following markdown:

- lists
- are
  - awesome
  - the
    - deeper
the better
    - but they don't work :(

Expected result

As rendered here and in any other place I tried - the newline is interpreted as continuation of the given list item:

  • lists
  • are
    • awesome
    • the
      • deeper
        the better
      • but they don't work :(

Actual result

Parts of the list indented further then 4 spaces rendered as code

image

Environment

  System:
    OS: macOS 10.15.7
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 15.5.0 - ~/.nvm/versions/node/v15.5.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.3.0 - ~/.nvm/versions/node/v15.5.0/bin/npm
  Languages:
    Python: 3.8.5 - /Users/sitalov/.pyenv/shims/python
  Browsers:
    Chrome: 87.0.4280.88
    Firefox: 84.0
    Safari: 14.0.2
  npmPackages:
    gatsby: ^2.21.37 => 2.29.3 
  npmGlobalPackages:
    gatsby-cli: 2.16.2
    gatsby-source-roamresearch: 0.4.1
    gatsby: 2.29.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugAn issue or pull request relating to a bug in Gatsbytype: upstreamIssues outside of Gatsby's control, caused by dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions