Having upgraded to v.0.3 canary, we are seeing 500 errors on any page that had a code block without specifying a language.
Is ok:
```js
console.log("Hello, world");
```
Is not ok:
```
console.log("Hello, world");
```
Sometimes code blocks are used for plain text, and I therefore suggest adding a default language to the codeBlockPlugin. I think defaulting to txt is perfectly fine.
Having upgraded to v.0.3 canary, we are seeing 500 errors on any page that had a code block without specifying a language.
Is ok: ```js console.log("Hello, world"); ```
Is not ok: ``` console.log("Hello, world"); ```
Sometimes code blocks are used for plain text, and I therefore suggest adding a default language to the codeBlockPlugin. I think defaulting to
txt
is perfectly fine.Related file: codeBlockPlugin.js
Suggested fix: