We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde84b4 commit b466258Copy full SHA for b466258
src/Engines/Markdown.js
@@ -18,7 +18,7 @@ class Markdown extends TemplateEngine {
18
19
// Overrides a highlighter set in `markdownOptions`
20
// This is separate so devs can pass in a new mdLib and still use the official eleventy plugin for markdown highlighting
21
- if (this.config.markdownHighlighter) {
+ if (this.config.markdownHighlighter && typeof this.mdLib.set === "function") {
22
this.mdLib.set({
23
highlight: this.config.markdownHighlighter,
24
});
0 commit comments