Open meeroslav opened 1 month ago
That is correct. The highlighter does not apply to agx files yet. It's possible to build your own pipeline to use shiki though. @joshuamorony has done this with remark
@meeroslav I've published it here if you want to use it: https://github.com/joshuamorony/analog-stuff/tree/main/packages/agx-remark-rehype
I'm using rehypePrettyCode for highlighting but, theoretically, you should be able to use any remark/rehype plugin you want
Thank you both!
I'm not super religious about shiki, I just wanted to report the error Analog throws when agx files are used.
I see. That is unexpected behavior out of the box. I think it also has to do with yarn
because it doesn't install peer dependencies out of the box.
Please provide the environment you discovered this bug in.
https://github.com/meeroslav/test-analog/tree/agx-missing-packages
To reproduce:
Which area/package is the issue in?
vite-plugin-angular
Description
When a basic
Blog
template-driven Analog repo is created withshiki
as a chosen code highlighter it works fine for standard markdown files.However, using
agx
format ignores it and reports missingprismjs
andmarked-highlight
, even if there is no code to highlight yet.Please provide the exception or error you saw