kjelsrud.dev/node_modules/@astrojs/mdx/dist/rehype-meta-string.d.ts

7 lines
279 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
/**
* Moves `data.meta` to `properties.metastring` for the `code` element node
* as `rehype-raw` strips `data` from all nodes, which may contain useful information.
* e.g. ```js {1:3} => metastring: "{1:3}"
*/
export default function rehypeMetaString(): (tree: any) => void;