From e04f1644102a6943e55ec8cc7036267aea23ad74 Mon Sep 17 00:00:00 2001 From: VasileD Date: Mon, 4 Dec 2023 09:39:47 +0200 Subject: [PATCH] rename from add to setMarkdownHighlighter --- src/UserConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UserConfig.js b/src/UserConfig.js index 90299340b..47cea7dc7 100644 --- a/src/UserConfig.js +++ b/src/UserConfig.js @@ -167,7 +167,7 @@ class UserConfig { // This is a method for plugins, probably shouldn’t use this in projects. // Projects should use `setLibrary` as documented here: // https://github.com/11ty/eleventy/blob/master/docs/engines/markdown.md#use-your-own-options - addMarkdownHighlighter(highlightFn) { + setMarkdownHighlighter(highlightFn) { this.markdownHighlighter = highlightFn; }