Repository navigation
Releases
Releases · zachleat/heading-anchors
<heading-anchors> v1.1.0
- Use markup (e.g. an SVG icon) for the anchor content with a child
<template data-ha-content>. It's cloned into both the placeholder and the link and takes precedence over thecontentattribute.
<heading-anchors>
<template data-ha-content><svg aria-hidden="true" viewBox="0 0 576 512"><use href="#fas-fa-link"></use></svg></template>
<h2 id="my-heading">My heading</h2>
</heading-anchors>- The accessible label is now built as text, so markup in heading text (e.g.
<wa-icon>) or in prefix no longer creates elements inside the link. - The content attribute is now plain text in both the placeholder and the link (previously HTML in the link only).