Commit 4ce57f9
authored
👌 Stop directive-option parsing at colon fences (#1133)
In order to determine a directive option block,
we look for all lines at the top of the directive that begin with `:`.
However, this failed for a nested colon fence like:
```
::::{note}
:class: abc
:::{note}
content
:::
::::
```
This adds a check to terminate the option block
when a line starts with 3 or more colons.
closes #9631 parent cfcc327 commit 4ce57f9
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
0 commit comments