Hi there!
I‘m working with markdown and Astro to build a wiki-like site. I’m making some pipeline adjustments to support redactions through some custom markdown syntax.
I have the remark phase nailed down, so my redactions are properly wrapped in their custom mdast nodes, but now I want to tell the processor to render those custom nodes with a custom preset component.
From what I gathered this would be a step to take during the phase where the mdast gets converted to the hast, but not something that could be done on either tree. So there‘s no intuitive way to realize this with a Plugin on either remark or rehype.
Does someone know a solid way to add this node handler to the remark-rehype phase of Astro’s markdown processor?