Add syntax highlighting for more languages besides Javascript

This commit is contained in:
Frank Li 2017-07-24 14:53:00 -07:00
parent 69ba05e4f1
commit f3a152170d
3 changed files with 712 additions and 105 deletions

View file

@ -815,7 +815,7 @@ Parser.prototype.tok = function() {
}
case "code": {
return (
<Prism>
<Prism language={this.token.lang}>
{this.token.text}
</Prism>
);