Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yaml highlights have extra space #94

Open
amshkv opened this issue Dec 2, 2022 · 1 comment
Open

Yaml highlights have extra space #94

amshkv opened this issue Dec 2, 2022 · 1 comment
Labels

Comments

@amshkv
Copy link

amshkv commented Dec 2, 2022

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();

Screenshots
Снимок экрана 2022-12-02 в 13 08 59
image

@wcoder
Copy link
Owner

wcoder commented Dec 2, 2022

Thanks for the report!

Looks like plugin generates extra tags:
Screen Shot 2022-12-02 at 7 09 35 PM

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>

@wcoder wcoder added the bug label Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants