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
{{ message }}
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
The problem to solve
The objective:
Go from this:
<a href="http://github.com">GitHub</a>To this:
<p>GitHub <http://github.com></p>(convert anchor tag to paragraph tag and then set paragraphs' inner content as a combination of anchor's innerText with the href attribute)
I was trying to achieve this through
transformTagsbut noticed that there is no way to accessinnerTextof the anchor's tag.Proposed solution
Something like this, below the third argument is new but maybe even exposing the innerText from
attribsargument would be just fine.Alternatives
No alternatives in mind at this time.
Additional context
Kinda relatable: #690