Yaml highlights have extra space
amshkv opened this issue · 1 comments
amshkv commented
Describe the bug
When using the line-number-plugin yaml highlights, multilines have an extra space
without line-numbers all aligned to the left edge
To Reproduce
https://codepen.io/Keda37/pen/ExRddRR - on/off hljs.initLineNumbersOnLoad();
wcoder commented
Thanks for the report!
Looks like plugin generates extra tags:
Workaround
Add more line breaks:
<pre><code class="language-yaml hljs">
multiline_1: |
Multiline
String
multiline_2: |
Multiline
String
multiline_3: |
Multiline
String
multiline_1:
- Multiline
- Multilne
multiline_2: Multiline
multiline_3: Multiline
</code></pre>