How can I get all the other JSX elements and their props inside an editor? #676
Unanswered
detarkende
asked this question in
Q&A
Replies: 0 comments
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.
-
I'm creating my own JSX heading component which can have a slug (the slug will be the id of the renderes
<h2>, so you can simply link to a title on the page).I'd like to make sure that all slugs are unique on the page, but for that I need to get all the mdastNodes, then filter them to find all the other headings currently in the editor.
Beta Was this translation helpful? Give feedback.
All reactions