analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.48k stars 234 forks source link

Docs: Add guide for implementing custom markdown renderer #874

Open brandonroberts opened 6 months ago

brandonroberts commented 6 months ago

Which scope/s are relevant/related to the feature request?

Docs

Information

The @analogjs/content package has a ContentRenderer abstract class that can be implemented and provided to use a different renderer for markdown content, such as remark with rehype

This needs to be documented to show how to create a custom renderer for those who want to use something other than the built-in one with marked and Prism.

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

joshuamorony commented 6 months ago

I'll be implementing remark/rehype shortly so I can create a PR for the docs once I'm done with that