code-hike / codehike

Build rich content websites with Markdown and React
https://codehike.org
MIT License
4.68k stars 142 forks source link

[mdx] Better errors for codeblocks #117

Closed pomber closed 1 year ago

pomber commented 2 years ago

Code Hike should show more user-friendly errors. This issue covers only basic code blocks.

pomber commented 2 years ago

If the language is not known it throws a Server Error

```foobar
hi;
```

invalid language should behave the same as no language, and maybe show a warning on the console at build time.