Replies: 3 comments 5 replies
-
I'll add the option to read code from the filesystem in the near future. For something more complex, if you want your approach of generating the mdx before is compiled is the way to go, you could even make a remark plugin that runs before codehike. |
Beta Was this translation helpful? Give feedback.
-
Also wondering if there could be a way of using |
Beta Was this translation helpful? Give feedback.
-
This is an ideal way IMHO. I've found docs' examples that didn't work because the API changed, yet they didn't test their own examples. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a use case where I'd like be able to fetch code from an external source and than use Code-hike to display it. So far I've only had luck with replacing sections of markdown before it's serialised by
next-mdx-remote
. Are there react components in Code-hike that can be used directly in jsx?Our motivation for external code, is we want each snippet to exist in it's own file so we can also run tests on them.
Beta Was this translation helpful? Give feedback.
All reactions