Retrieving mdast information from a docusaurus plugin #10430
Unanswered
chanjunren
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Not sure if we have all the low-level apis to make this possible. Afaik some users (@anaclumos ?) built something like this in userland as a pre-build step. All our 3 content plugins support Remark plugins, and Remark plugins have access to the mdast, running inside our mdx loader during the bundling phase. An idea could be to collect your link graph in remark plugins, and then expose it as a JSON file created in a |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm currently looking into implementing a graph view (docusaurus) Obsidian's graph view
I have written a remark plugin that converts some of obsidian's markdown syntax to docusaurus's markdown syntax, and I was wondering if I would be able to access the processed mdast from a docusaurus plugin
The overall approach I have in mind is as follows:
I have tried looking into Docusaurus's plugin documentation to see if accessing the generated mdast is possible, but have not found anything concrete.
Any advice is greatly appreciated 🙏🏻
Beta Was this translation helpful? Give feedback.
All reactions