Skip to content

Nested field list parsing issue #1108

@minijackson

Description

@minijackson

What version of myst-parser are you using?

5.0.0

What version dependencies are you using?

  • Sphinx v9.0.4
  • docutils v0.22.4

What operating system are you using?

Linux

Describe the Bug

Field lists that are indented because they are nested in another element seems to always be considered as children of each other, instead of children of the parent element.

Expected Behavior

Indented field lists are considered children of the parent element

To Reproduce

This content:

:hello:
  :hello: world
  :hello: world
  :hello: world

---

hello
: :hello: world
  :hello: world
  :hello: world

---

- :hello: world
  :hello: world
  :hello: world

Produces for me:

Result

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions