Skip to content

Commit 150d1ad

Browse files
committed
Fixes #81
1 parent 9c86577 commit 150d1ad

File tree

4 files changed

+3
-171
lines changed

4 files changed

+3
-171
lines changed

.eleventy.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const Prism = require("prismjs");
33
const hasTemplateFormat = require("./src/hasTemplateFormat");
44
const HighlightPairedShortcode = require("./src/HighlightPairedShortcode");
55
const LiquidHighlightTag = require("./src/LiquidHighlightTag");
6-
const CharacterWrap = require("./src/CharacterWrap");
76
const markdownPrismJs = require("./src/markdownSyntaxHighlightOptions");
87

98
module.exports = {
@@ -44,7 +43,7 @@ module.exports = {
4443
eleventyConfig.addMarkdownHighlighter(markdownPrismJs(options));
4544
}
4645

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

5655
module.exports.pairedShortcode = HighlightPairedShortcode;
57-
module.exports.CharacterWrap = CharacterWrap;

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@
3737
"compatibility": ">=0.5.4"
3838
},
3939
"devDependencies": {
40-
"@11ty/eleventy": "^1.0.2",
41-
"ava": "^5.0.1",
42-
"liquidjs": "^9.42.1",
40+
"@11ty/eleventy": "^2.0.1",
41+
"ava": "^5.2.0",
4342
"markdown-it": "^13.0.1"
4443
},
4544
"dependencies": {
46-
"linkedom": "^0.14.19",
4745
"prismjs": "^1.29.0"
4846
},
4947
"ava": {

src/CharacterWrap.js

Lines changed: 0 additions & 151 deletions
This file was deleted.

test/CharacterWrapTest.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)