Closed suikan4github closed 4 years ago
Hi @suikan4github
sry but you're using the editing modes in the absolute wrong way...
in your example above, the automatic block conversion mode of Gutenberg transforms your markdown code into an Enlighter codeblock - that's an internal utility of the Enlighter.Gutenberg plugin to convert legacy codeblocks to Gutenberg blocks - but it has never been intended to be used this way - this has nothing to do with the GFM settings of Enlighter
if you want to use Gutenberg, please use the Enlighter Sourcecode block - it is impossible to use markdown in Gutenberg without a dedicated block because of the auto formatting functions (same for TinyMCE/Classic Editor)
Hi @AndiDittrich
Thank you very much for your explanation. I understand the usage.
Regards,
Description of problem
The language specifier of the fenced code block of the markdown is not handled correctly, when the markdown is pasted to the Gutenberg. The Enlighter block is always set as Generic Highlighting.
If I change the language of the Enlighter block manually, there is not a problem. Only the language specifier after the 3 backticks are ignored.
How to reproduce
Paste following code block to the Gutenberg editor. The result is always "Generic Highlighting" rather than PHP.