1
1
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:
Brent Jackson 2019-03-23 13:53:40 -04:00 committed by GitHub
commit dd9b775c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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} />
}

View File

@ -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 {