mirror of
https://github.com/sern-handler/website
synced 2026-06-28 02:32:23 +00:00
7 lines
279 B
TypeScript
7 lines
279 B
TypeScript
/**
|
|
* 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;
|