eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Rename or remove addMarkdownHighlighter

Open Snapstromegon opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

In general the add*() functions of the eleventy config are non-destructive if possible. addMarkdownHightlighter() on the other hand behaves like the set*() functions.

Also this function IMO is no longer necessary, since there are other, better and better documented options in eleventy.

Function in code: https://github.com/11ty/eleventy/blob/main/src/UserConfig.js#L170

Describe the solution you'd like

I would recommend to either remove this function completely with the next major version, or to rename it to setMarkdownHighlighter() and add documentation for it.

Describe alternatives you've considered

Not changing anything is possible, but leaves this in a weird state.

Additional context

No response

Snapstromegon avatar Nov 14 '23 19:11 Snapstromegon