Rodrigo Pombo
Rodrigo Pombo
Using code hike to re-render the edited code would be hard, right now code hike does all the syntax highlighting on the server when the MDX is transformed to JSX....
Maybe use `font-display:block;`?
How are you using it with Next.js? What do you mean that it breaks? The page doesn't refresh or the state is not preserved? An example repo would help.
OK, I think I know why this happens. I'll try to fix it soon.
ok, it isn't easy to fix. I'm going to leave it for later.
> @pomber can you share any details re/ why you think it happens? I'm hitting this as well. There are some useState I need to remove from a few Code...
Yes, the rehype plugin won't work for this. Before adding this feature we need a good syntax to pass options to annotations. Maybe something like this: ``` // link[7:14] https://codehike.org...
Good idea. I'll think about it.
> I'm wondering if there's a good way to switch themes on the fly? (ie: icon that switches between light/dark theme) Not right now. The syntax highlighting is done at...
A live example of your issue would be helpful. Have you tried adding custom CSS?