mirror of
https://github.com/jaandrle/deka-dom-el
synced 2026-01-11 08:16:29 +01:00
🐛 📺 v0.9.5-alpha (#44)
* ⚡ 📺 package (version and publint) * 🔤 docs typos * 🐛 this address / fixes #43 * ⚡ tiny el optimalization * 🔤 improve docs wording * 🔤 case-studies/products.js (AbortSignal) * 🔤 🐛 case-studies/image-gallery.js
This commit is contained in:
@@ -74,13 +74,11 @@ export function h3({ textContent, id }){
|
||||
if(!id) id= "h-"+textContent.toLowerCase().replaceAll(/\s/g, "-").replaceAll(/[^a-z-]/g, "");
|
||||
return el("h3", { id }).append(
|
||||
el("a", {
|
||||
className: "heading-anchor",
|
||||
href: "#"+id,
|
||||
textContent: "#",
|
||||
title: `Link to this section: ${textContent}`,
|
||||
"aria-label": `Link to section ${textContent}`
|
||||
className: "heading-anchor",
|
||||
href: "#"+id,
|
||||
title: `Link to this section: ${textContent}`,
|
||||
}),
|
||||
" ",
|
||||
"# ",
|
||||
textContent,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user