mohzy83 / NppMarkdownPanel

Lightweight Notepad++ plugin to preview Markdown files
MIT License
228 stars 37 forks source link

Code fences not rendered unless language label is in `ColorCode.Languages` dictionary (v0.7.0 regression) #55

Closed rdipardo closed 1 year ago

rdipardo commented 1 year ago

Since 9ebbb73, code fences with a language label other than csharp, cplusplus, aspx, etc., are not rendered at all. Any other language label has to be edited out.

v0.7.0

nppMrkdPanel-v0 7 0

v0.6.2

nppMrkdPanel-v0 6 2

There needs to be a default case handler in Markdig.SyntaxHighlighting.LanguageTypeAdapter.Parse, so that code fences are always rendered, even if the label is unrecognized.

mohzy83 commented 1 year ago

This issue has already been posted in 2020 see: https://github.com/RichardSlater/Markdig.SyntaxHighlighting/issues/16 Great that you found a solution! I will merge the PR.