🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
15
node_modules/@astrojs/mdx/dist/rehype-meta-string.js
generated
vendored
Normal file
15
node_modules/@astrojs/mdx/dist/rehype-meta-string.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { visit } from "unist-util-visit";
|
||||
function rehypeMetaString() {
|
||||
return function(tree) {
|
||||
visit(tree, (node) => {
|
||||
var _a;
|
||||
if (node.type === "element" && node.tagName === "code" && ((_a = node.data) == null ? void 0 : _a.meta)) {
|
||||
node.properties ??= {};
|
||||
node.properties.metastring = node.data.meta;
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
export {
|
||||
rehypeMetaString as default
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue