tangled
alpha
login
or
join now
vielle.dev
/
site-archive
0
fork
atom
[Archived] Archived WIP of vielle.dev
0
fork
atom
overview
issues
pulls
pipelines
Remove tabindex from code elements
vielle.dev
8 months ago
d465f813
e5c2a9c3
verified
This commit was signed with the committer's
known signature
.
vielle.dev
SSH Key Fingerprint:
SHA256:/4bvxqoEh9iMdjAPgcgAgXKZZQTROL3ULiPt6nH9RSs=
+5
1 changed file
expand all
collapse all
unified
split
rehype-custom-html.ts
+5
rehype-custom-html.ts
···
130
130
forChild(node.children);
131
131
}
132
132
133
133
+
case "pre": {
134
134
+
console.log(node.properties);
135
135
+
if (node.properties["tabindex"]) node.properties["tabindex"] = "-1";
136
136
+
}
137
137
+
133
138
case "ul": {
134
139
node.children.forEach((x) => {
135
140
if (x.type === "element" && x.tagName === "li") {