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

Syntax Highlighting of Yaml-code #8545

Closed
VladyslavBondarenko opened this issue May 19, 2021 · 3 comments
Closed

Syntax Highlighting of Yaml-code #8545

VladyslavBondarenko opened this issue May 19, 2021 · 3 comments
Labels

Comments

@VladyslavBondarenko
Copy link

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.83.1+extended darwin/amd64 BuildDate=unknown

Does this issue reproduce with the latest release?

yes, v0.83.1.

Issue:

A single line after a pipe in Yaml is styled wrongly.

scripts:
  singleLineScript: |
    npm install
  multipleLineScript: |
    npm install
    npm start

results into
image

Note the indentation and font color of the first npm install. Multiple lines are highlighted correctly.

@pamubay
Copy link

pamubay commented May 19, 2021

This is upstream issue, related to Chroma https://github.com/alecthomas/chroma.

There is opened issue on chroma repo about this bug. alecthomas/chroma#475

@VladyslavBondarenko
Copy link
Author

Thanks @pamubay, closing as duplicate

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants