You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#50 only fixes a corner case of #49 and has a few problems:
It uses a greedy regex.
It stops when it finds a digit in a tag (why?).
What is current behaviour
## Bla bla bla <svgaria-label="broken"class="broken"viewPort="0 0 1 1"><circlecx="0.5"cy="0.5"/></svg>## Another <spanstyle="font-size: 1.2em"class="foo bar baz">broken <spanclass="aaa">example</span></span>
Bug Report
#50 only fixes a corner case of #49 and has a few problems:
What is current behaviour
…produces the slugs:
bla-bla-bla-svg-aria-labelbroken-classbroken-viewport0-0-1-1circle-cx05-cy05
.another-span-stylefont-size-12em-classfoo-bar-bazbroken-example
What is the expected behaviour
The slugs should ignore the html tags, and be:
bla-bla-bla
another-broken-example
Proposed fix
In
src/core/render/slugify.js
:Other relevant information
The text was updated successfully, but these errors were encountered: