eleventy-plugin-syntaxhighlight icon indicating copy to clipboard operation
eleventy-plugin-syntaxhighlight copied to clipboard

Add an option to ignore invalid languages. Fixes #70

Open yehudab opened this issue 2 years ago • 0 comments

In order to support both use-cases described in the issue, I've added an option called: ignoreInvalidLanguages. This option can take take one of two values:

  • html - Fixing the original use-case: Generate the same HTML as if the language was recognized, but has no special highlighting (similar to the text language)
  • md - Keep the default markdown processing.

The difference in the output between the two options can also be seen in the newly added tests.

yehudab avatar Oct 14 '22 17:10 yehudab