We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb9556d commit f871557Copy full SHA for f871557
eleventy.config.cjs
@@ -50,7 +50,17 @@ module.exports = function(eleventyConfig) {
50
});
51
52
/** fancy syntax highlighting with diff support */
53
- eleventyConfig.addPlugin(SyntaxHighlightPlugin);
+ eleventyConfig.addPlugin(SyntaxHighlightPlugin, {
54
+ init() {
55
+ const register = require('prismjs/components/index');
56
+ register([
57
+ 'html',
58
+ 'regex',
59
+ 'js-templates',
60
+ 'javascript',
61
+ ]);
62
+ },
63
+ });
64
65
/** Strip empty paragraphs */
66
eleventyConfig.addPlugin(EmptyParagraphPlugin);
0 commit comments