@11ty/eleventy-plugin-syntaxhighlight
Advanced tools
Comparing version 3.2.2 to 4.0.0
@@ -47,2 +47,10 @@ const pkg = require("./package.json"); | ||
} | ||
if( hasTemplateFormat(options.templateFormats, "11ty.js") ) { | ||
eleventyConfig.addJavaScriptFunction("highlight", (language, content, highlight1, highlight2) => { | ||
let highlightLines = [highlight1, highlight2].filter(entry => entry).join(" "); | ||
let result = HighlightPairedShortcode(content, language, highlightLines, options); | ||
return result; | ||
}); | ||
} | ||
} | ||
@@ -49,0 +57,0 @@ }; |
{ | ||
"name": "@11ty/eleventy-plugin-syntaxhighlight", | ||
"version": "3.2.2", | ||
"description": "A pack of Eleventy plugins for syntax highlighting for Markdown and Liquid templates.", | ||
"version": "4.0.0", | ||
"description": "Prism.js based syntax highlighting for Markdown, Liquid, Nunjucks, and 11ty.js templates.", | ||
"publishConfig": { | ||
@@ -40,2 +40,3 @@ "access": "public" | ||
"devDependencies": { | ||
"@11ty/eleventy": "^1.0.0", | ||
"ava": "^4.0.1", | ||
@@ -46,5 +47,12 @@ "liquidjs": "^9.33.1", | ||
"dependencies": { | ||
"linkedom": "^0.13.0", | ||
"linkedom": "^0.13.2", | ||
"prismjs": "^1.26.0" | ||
}, | ||
"ava": { | ||
"environmentVariables": {}, | ||
"failFast": false, | ||
"files": [ | ||
"./test/*.js" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47888
35
977
4
Updatedlinkedom@^0.13.2