Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@11ty/eleventy-plugin-syntaxhighlight

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@11ty/eleventy-plugin-syntaxhighlight - npm Package Compare versions

Comparing version 3.2.2 to 4.0.0

test/11tyjs-test/.eleventy.js

8

.eleventy.js

@@ -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 @@ };

14

package.json
{
"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"
]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc