Closed d3m1d0v closed 7 months ago
Auto-named anchors used only last text token of heading. I fixed that, and now auto-naming is generated from contents of all text tokens of heading.
Also, it fixed some cases where inline markup got into auto-generated anchors and they became broken
Example markup: ## _Lorem ~~ipsum **dolor** sit~~ amet_ Before: auto anchor is #amet Now: auto anchor is #lorem-ipsum-dolor-sit-amet
## _Lorem ~~ipsum **dolor** sit~~ amet_
#amet
#lorem-ipsum-dolor-sit-amet
Auto-named anchors used only last text token of heading. I fixed that, and now auto-naming is generated from contents of all text tokens of heading.
Also, it fixed some cases where inline markup got into auto-generated anchors and they became broken
Example markup:
## _Lorem ~~ipsum **dolor** sit~~ amet_
Before: auto anchor is#amet
Now: auto anchor is#lorem-ipsum-dolor-sit-amet