examples icon indicating copy to clipboard operation
examples copied to clipboard

feat: added MDX example

Open muningis opened this issue 1 year ago • 4 comments

https://github.com/kentcdodds/mdx-bundler (still waiting for 10.2.0 with my fix on my mistake..)

Unfortunately, this can not be used in Cloudflare Workes as mdx-bundler depends on esbuild :(


This is how hello-world.mdx get's rendered: image

muningis avatar Dec 18 '24 18:12 muningis

@yusukebe Please check when you're available

muningis avatar Feb 10 '25 19:02 muningis

Hi @muningis

This is interesting, and I'm glad I can learn about mdx-bundler. But I think this example is not suited for honojs/examples. Because examples should be simple and for general use cases. My idea is to put this content on the Example page of our website: https://hono.dev/examples/.

yusukebe avatar Feb 13 '25 09:02 yusukebe

examples should be simple and for general use cases. Yeah, I had similar concern/doubt, but tbh this isn't that much more complicated compared to, for example, blog example -> https://github.com/honojs/examples/tree/main/blog or examples in https://hono.dev/examples/.

As a comparison, I could provide example suited in style of https://hono.dev/examples/ to see whether it's suited and/or too complicated?

muningis avatar Feb 13 '25 09:02 muningis

@muningis

Okay! I think you may know but you should focus "How to use mdx-bundler with Hono".

yusukebe avatar Feb 13 '25 09:02 yusukebe