mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 21:00:19 +03:00
parent
c072d3bedb
commit
f1a54563f1
|
@ -306,7 +306,7 @@ export class Code extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const { lang, title, executable, github, prompt, wrap, highlight, className, children } =
|
const { lang, title, executable, github, prompt, wrap, highlight, className, children } =
|
||||||
this.props
|
this.props
|
||||||
const codeClassNames = classNames(classes['code'], className, {
|
const codeClassNames = classNames(classes['code'], className, `language-${lang}`, {
|
||||||
[classes['wrap']]: !!highlight || !!wrap || lang === 'cli',
|
[classes['wrap']]: !!highlight || !!wrap || lang === 'cli',
|
||||||
[classes['cli']]: lang === 'cli',
|
[classes['cli']]: lang === 'cli',
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user