Skip to content

Commit

Permalink
Merge pull request #1 from alesandroortiz/update-version
Browse files Browse the repository at this point in the history
Update highlight.js version
  • Loading branch information
alesandroortiz authored Nov 12, 2021
2 parents 6e7b26e + 48f1ded commit 02ddb3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eleventy-plugin-highlightjs",
"version": "1.1.0",
"version": "2.0.0",
"description": "",
"main": ".eleventy.js",
"scripts": {
Expand All @@ -17,6 +17,6 @@
},
"homepage": "https://github.com/alesandroortiz/eleventy-plugin-highlightjs#readme",
"dependencies": {
"highlight.js": "^10.1.1"
"highlight.js": "^11.3.1"
}
}
4 changes: 2 additions & 2 deletions src/markdownSyntaxHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports = function(str, language) {
html = str;
} else {
html = 'test';
html = hljs.highlight(language, str).value;
html = hljs.highlight(str, {language: language}).value;
}

return `<pre class="language-${language}"><code class="language-${language}">${html}</code></pre>`;
};
};

0 comments on commit 02ddb3f

Please sign in to comment.