chore: ⬆️ Upgrade all dependencies except shiki

This commit is contained in:
Jesse Wierzbinski 2024-07-22 12:12:40 +02:00
parent f39d34b769
commit 27631b618e
No known key found for this signature in database
3 changed files with 38 additions and 37 deletions

View file

@ -8,7 +8,7 @@ import { visit } from "unist-util-visit";
function rehypeParseCodeBlocks() {
return (tree) => {
// biome-ignore lint/style/useNamingConvention: <explanation>
visit(tree, "element", (node, _, parentNode) => {
visit(tree, "element", (node, _nodeIndex, parentNode) => {
if (node.tagName === "code" && node.properties.className) {
parentNode.properties.language =
node.properties.className[0]?.replace(/^language-/, "");