mirror of
https://github.com/versia-pub/docs.git
synced 2026-03-13 02:49:16 +01:00
chore: ⬆️ Upgrade all dependencies except shiki
This commit is contained in:
parent
f39d34b769
commit
27631b618e
3 changed files with 38 additions and 37 deletions
|
|
@ -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-/, "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue