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
9 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
forChild(node.children);
131
}
132
0
0
0
0
0
133
case "ul": {
134
node.children.forEach((x) => {
135
if (x.type === "element" && x.tagName === "li") {
···
130
forChild(node.children);
131
}
132
133
+
case "pre": {
134
+
console.log(node.properties);
135
+
if (node.properties["tabindex"]) node.properties["tabindex"] = "-1";
136
+
}
137
+
138
case "ul": {
139
node.children.forEach((x) => {
140
if (x.type === "element" && x.tagName === "li") {