1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-29 23:45:58 -04:00

add anchor links to content sub-headings

forked anchor-js: https://github.com/jakejarvis/simple-anchor
This commit is contained in:
2021-08-30 14:01:13 -04:00
parent 5e3507a594
commit 1ed75bb763
6 changed files with 108 additions and 69 deletions
+7
View File
@@ -0,0 +1,7 @@
import SimpleAnchor from "simple-anchor";
const anchors = new SimpleAnchor({
icon: "",
});
anchors.add("article #content h2, article #content h3, article #content h4");