Skip to content

Commit

Permalink
Fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Apr 12, 2023
1 parent 9c86577 commit 150d1ad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 171 deletions.
4 changes: 1 addition & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const Prism = require("prismjs");
const hasTemplateFormat = require("./src/hasTemplateFormat");
const HighlightPairedShortcode = require("./src/HighlightPairedShortcode");
const LiquidHighlightTag = require("./src/LiquidHighlightTag");
const CharacterWrap = require("./src/CharacterWrap");
const markdownPrismJs = require("./src/markdownSyntaxHighlightOptions");

module.exports = {
Expand Down Expand Up @@ -44,7 +43,7 @@ module.exports = {
eleventyConfig.addMarkdownHighlighter(markdownPrismJs(options));
}

// we need to add this as many template languages rely on JavaScript functions (not just 11ty.js)
// we need to add this as many template languages (Vue, WebC) rely on JavaScript functions (not just 11ty.js)
eleventyConfig.addJavaScriptFunction("highlight", (language, content, highlight1, highlight2) => {
let highlightLines = [highlight1, highlight2].filter(entry => entry).join(" ");
let result = HighlightPairedShortcode(content, language, highlightLines, options);
Expand All @@ -54,4 +53,3 @@ module.exports = {
};

module.exports.pairedShortcode = HighlightPairedShortcode;
module.exports.CharacterWrap = CharacterWrap;
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@
"compatibility": ">=0.5.4"
},
"devDependencies": {
"@11ty/eleventy": "^1.0.2",
"ava": "^5.0.1",
"liquidjs": "^9.42.1",
"@11ty/eleventy": "^2.0.1",
"ava": "^5.2.0",
"markdown-it": "^13.0.1"
},
"dependencies": {
"linkedom": "^0.14.19",
"prismjs": "^1.29.0"
},
"ava": {
Expand Down
151 changes: 0 additions & 151 deletions src/CharacterWrap.js

This file was deleted.

13 changes: 0 additions & 13 deletions test/CharacterWrapTest.js

This file was deleted.

0 comments on commit 150d1ad

Please sign in to comment.