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. |
1 reply
|
Also wondering if there could be a way of using |
3 replies
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. |
1 reply
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.
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.
All reactions