Skip to content

"Empty" directives on 1 line? #223

@paugier

Description

@paugier

Context

In MyST, it can make sense to have "1 line fenced code block". It would for example allow sphinx-exercise users to write

```{exercise-end}```

instead of

```{exercise-end}
```

This would save some lines and improve the global readability in documents where there are tens of such directives.

Now, these 2 inputs give very different results (executablebooks/MyST-Parser#617 (comment)), which is kind of surprising for the users.

See executablebooks/MyST-Parser#617

Proposal

I'm wondering if there is a strong reason not to parse

```{exercise-end}```

as a fenced code block?

Tasks and updates

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions