Commit eee3032
committed
Ensure nested elements inside inline comments are properly unescaped.
When inline Markdwon elements are nested, each nested level contains its
own placeholder. Therefore, when unescaping, the regex substitution needs
to be run again each nested level. As this is nested inside the match, it ensures
only one non-matching regex will be run in each instace.
Closes #1571.1 parent 22e89c1 commit eee3032
File tree
2 files changed
+8
-1
lines changed- markdown
- tests/test_syntax/inline
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
| 524 | + | |
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments