mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-29 13:58:02 +03:00
Merge pull request #286 from jxnblk/fix-syntax-error
Fix syntax error in theme
This commit is contained in:
commit
dd9b775c2b
@ -7,7 +7,7 @@ import { getLanguage } from './syntax-highlighter'
|
||||
export const pre = props => props.children
|
||||
|
||||
export const createCode = (opts = {}) => props => {
|
||||
language = getLanguage(props.className)
|
||||
const language = getLanguage(props.className)
|
||||
return <Prism {...opts} language={language} {...props} />
|
||||
}
|
||||
|
||||
|
@ -13,8 +13,8 @@ export const getLanguage = className => {
|
||||
export const pre = props => props.children
|
||||
|
||||
export const code = props => {
|
||||
const lang = getLanguage(props.className)
|
||||
return <SyntaxHighlighter language={lang} {...props} />
|
||||
const language = getLanguage(props.className)
|
||||
return <SyntaxHighlighter language={language} {...props} />
|
||||
}
|
||||
|
||||
export default {
|
||||
|
Loading…
Reference in New Issue
Block a user