Repository navigation
Commit 59f7dde
keep nested emphasis around an autolink from turning into strong
an emphasis that starts with an autolink keeps the delimiter it was written
with . the emphasis around it did not know that and picked `_` too , so
`*_https://a.b_*` came out as `__https://a.b__` , which is strong emphasis ,
and the next format turned it into `**https://a.b**` . the parent now keeps
its written delimiter as well .
the issue case is pinned in emphasis/issue-8654.md . 18 of the 24 nested
wrappers commented out in the auto-link test pass now and are turned back on ,
4 of their cases fail on main . the other 6 wrappers still fail the same way
on main for a different reason and stay commented out .
Co-Authored-By: Claude Opus 5 <[email protected]>1 parent 1a36a7d commit 59f7dde
6 files changed
Lines changed: 4153 additions & 426 deletions
File tree
- changelog_unreleased/markdown
- src/language-markdown/print
- tests/format/markdown
- auto-link
- __snapshots__
- emphasis
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
0 commit comments