Skip to content

Commit 2b7c543

Browse files
committed
format
1 parent 7a92bcb commit 2b7c543

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ export default {
1717
},
1818
render(h, ctx) {
1919
const code =
20-
ctx.props.code || ((ctx.children && ctx.children.length > 0)
21-
? ctx.children[0].text
22-
: '')
20+
ctx.props.code ||
21+
(ctx.children && ctx.children.length > 0 ? ctx.children[0].text : '')
2322
const inline = ctx.props.inline
2423
const language = ctx.props.language
2524
const prismLanguage = Prism.languages[language]

0 commit comments

Comments
 (0)