mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 21:00:19 +03:00
Remove duplicate class
The `language-` class is now automatically injected.
This commit is contained in:
parent
b5e5d4a334
commit
04c8ea3092
|
@ -319,7 +319,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, `language-${lang}`, {
|
const codeClassNames = classNames(classes['code'], className, {
|
||||||
[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