Skip to content

For v3.0.1: If the last directive option has an empty value then it is omitted #923

@hroemer

Description

@hroemer

What version of myst-parser are you using?

3.0.0

What version dependencies are you using?

sphinx=7.3.7
docutils=0.20.1

What operating system are you using?

Linux

Describe the Bug

The glob patterns defined in a toctree directive do not work with 3.0.0 anymore.

Expected Behavior

No response

To Reproduce

```{toctree}
---
maxdepth: 2
caption: Contents
glob:
---
path*/index
pages/**
*/index
```

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