You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 16, 2024. It is now read-only.
Running this code sample from the docs is broken, because unified needs a compiler such as rehype-stringify to run the process method
constunified=require('unified');constremarkParse=require('remark-parse');constremarkRehype=require('remark-rehype');constrehypePrism=require('rehype-prism');unified().use(remarkParse).use(remarkRehype).use(rehypePrism).process(/* some markdown */);
Furthermore when adding the rehype-stringify compiler the code runs correctly, but the output is not syntax highlighted, it seems that adding rehype-prism doesn't change the output.
Running this code sample from the docs is broken, because unified needs a compiler such as
rehype-stringifyto run theprocessmethodFurthermore when adding the
rehype-stringifycompiler the code runs correctly, but the output is not syntax highlighted, it seems that addingrehype-prismdoesn't change the output.Full code sample: