Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Nested lists with fenced code blocks do not render correctly #32088

Open
@rturner3

Description

@rturner3
  • Sourcegraph version: 3.28.0
  • Platform information: Chrome 98.0.4758.109

Steps to reproduce:

  1. Create a Markdown file in a Git repository that contains a nested list with a fenced code block in the nested list.

Example:

Raw Markdown

1.  Foo
    1. Bar

        ```
        Some code
        ```

    1. Baz
    
        ```
        Some more code
        ```

Expected behavior:

Markdown renders nested list items correctly with auto-incremented sub-list headers such as i. and ii., like GitHub renders it:

  1. Foo
    1. Bar

      Some code
      
    2. Baz

      Some more code
      

Actual behavior:

Sourcegraph renders the nested list with incorrect indentation of the second sub-list item and does not render auto-incremented nested list item headers, such as i. and ii.. Simulated rendering:

1.  Foo
    1. Bar
        Some code
            1. Baz
        Some other code

If would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are not SLAs on issues like there are for support requests).

Metadata

Metadata

Assignees

No one assigned

    Labels

    cp-core-workflowIssues for the Core workflow cross-product workestimate/1dfpt/p3Nice to have (non critical)fpt/ui-papercutfrontend-platformIssues related to our frontend platform, owned collectively by our frontend crew.markdown-issuesourcegraph-refinement-botspikeTime boxed investigation meant to facilitate more granular planning.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions