valeriangalliat / markdown-it-highlightjs

Preset to use highlight.js with markdown-it.
The Unlicense
58 stars 31 forks source link

fix: console log Unknown language: "" #8

Closed commenthol closed 4 years ago

commenthol commented 4 years ago

highlight.js throws an error for option {auto: false} if no language is given. As an ugly side-effect this error is logged via console.log. Setting the language in those cases to plaintext prevents this.

No new test case required as already being covered. You'll only notice that the console.log error message is gone.

valeriangalliat commented 4 years ago

Good stuff, thanks!