idea-multimarkdown
idea-multimarkdown copied to clipboard
Use only first word in info string to determine highlighting in fenced code blocks
According to the CommonMark specification (emphasis mine):
The first word of the info string is typically used to specify the language of the code sample[...]
All other Markdown implementation that I know of use the same approach. This allows you to add extra metadata to your code blocks:
```java highlight=suppressed
// code comes here
```
Markdown Navigator Enhanced seems to use the entire info string.
The following works:
```java
// code comes here
```
But this does not:
```java and some arbitrary info-string meta-data
// code comes here
```
@publysher, will add this to the next release
@publysher, I checked and it is already implemented to only use the first word.

Where are you seeing it not working properly?
It's actually about the syntax highlighting in the editor. Without a tag:

Note how the code has syntax highlighting and live code analysis. Not in the screenshot, but it also supports language specific intentions.
But when I add a tag:

Now the code no longer has syntax highlighting in the IDE.