There was an error while loading. Please reload this page.
1 parent 7a92bcb commit 2b7c543Copy full SHA for 2b7c543
src/index.js
@@ -17,9 +17,8 @@ export default {
17
},
18
render(h, ctx) {
19
const code =
20
- ctx.props.code || ((ctx.children && ctx.children.length > 0)
21
- ? ctx.children[0].text
22
- : '')
+ ctx.props.code ||
+ (ctx.children && ctx.children.length > 0 ? ctx.children[0].text : '')
23
const inline = ctx.props.inline
24
const language = ctx.props.language
25
const prismLanguage = Prism.languages[language]
0 commit comments