mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 18:46:57 +02:00
Add syntax highlighting for more languages besides Javascript
This commit is contained in:
parent
69ba05e4f1
commit
f3a152170d
3 changed files with 712 additions and 105 deletions
|
@ -815,7 +815,7 @@ Parser.prototype.tok = function() {
|
|||
}
|
||||
case "code": {
|
||||
return (
|
||||
<Prism>
|
||||
<Prism language={this.token.lang}>
|
||||
{this.token.text}
|
||||
</Prism>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue