Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 83a8197

Browse files
Merge pull request #34 from dshomoye/patch-1
fix language property to component
2 parents c2d2477 + 8495f3b commit 83a8197

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ module.exports = ({ markdownAST }, pluginOptions) => {
1313
const text = toString(node);
1414
const properties = generatePropsString(pluginOptions);
1515
const html = `
16-
<deckgo-highlight-code ${
17-
lang
18-
} ${properties} highlight-lines="${highlightLines}">
16+
<deckgo-highlight-code language=${lang} ${properties} highlight-lines="${highlightLines}">
1917
<code slot="code">${_.escape(text)}</code>
2018
</deckgo-highlight-code>
2119
`.trim();

0 commit comments

Comments
 (0)