Replies: 1 comment
-
See the answers in https://github.com/orgs/rehypejs/discussions/201#discussioncomment-13395282 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Heyo,
I've been working on a project to support some custom markdown syntax which will be rendered as a custom preact component.
I've done the steps in remark and the remarkRehype stages, so now I have my markdown content wrapped in
§§[content]§§
properly marked by HTML elements<inline-redactions>[content]</inline-redaction>
Though, now I need to tell rehype to parse those elements as a custom preact component
InlineRedaction.tsx
.I've gotten so far that I probably need the rehype-react plugin. But I'm struggling to configure it properly.
Does anyone have experience with the plugin or this use case? I'd very much appreciate some pointers here.
(link to discussion in the rehype repo)
Beta Was this translation helpful? Give feedback.
All reactions