executablebooks / sphinx-exercise

A Sphinx extension for producing exercise and solution directives.
https://ebp-sphinx-exercise.readthedocs.io
MIT License
19 stars 7 forks source link

BUG: Can't include nested Headings in Directives #62

Open mmcky opened 1 year ago

mmcky commented 1 year ago

Describe the bug

You can't have nested headings within exercise directives such as

```{exercise-start}
:label:

Heading 2



this causes the nodes not be correctly collected and parsed in the `AST`

### Reproduce the bug

See above example

### List your environment

_No response_