PrismJS YAML syntax highlighting double line break

Viewed 6

When using PrismJS with YAML block that has a double newline, it doesn't highlight correctly after the blank line. Does anyone know how to solve this? Attaching a screenshot of correct highlighting from onlineyamltools.com to show what I mean. It can easily be seen here: https://prismjs.com/test.html#language=yaml

Incorrect highlighting

Correct highlighting

0 Answers
Related