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

Backslashes in code blocks are wrapped in <span> #47

Open
eine opened this issue Jan 8, 2020 · 4 comments
Open

Backslashes in code blocks are wrapped in <span> #47

eine opened this issue Jan 8, 2020 · 4 comments

Comments

@eine
Copy link
Contributor

eine commented Jan 8, 2020

Using backslashes in a code block with a sh command, produces coloured symbols that are wrapped in <span>. As a result, additional space is shown. For example:

docker run --rm \
  -v //var/run/docker.sock://var/run/docker.sock \
  -v issues://volume \
  eine/issue-runner <ref>

docuapi_backslash

@bep
Copy link
Owner

bep commented Jan 8, 2020

This looks to be an issue with Chroma and I would appreciate if you could create and issue at https://github.com/alecthomas/chroma/issues which is closer to where it needs to be fixed. It would be good if you could link back to this issue so we can track the progress.

@alecthomas
Copy link

I can't reproduce this, but it might be a bug in an older version of Chroma. I've tagged v0.7.1 if you want to update.

@eine
Copy link
Contributor Author

eine commented Jan 9, 2020

I tried to:

  • Git clone hugo.
  • Edit go.mod to bump chroma to 0.7.1.
  • go get ./....
  • go build -o hugo.

Unfortunately, I am still getting the same output.

@bep, is there any setting/option that I might try either in hugo or in the theme?

@eine
Copy link
Contributor Author

eine commented Jan 9, 2020

This is quite strange... The site hosted at GitHub Pages is correct: https://eine.github.io/issue-runner/#cli Maybe the issue is produced by hugo serve? I need to do further tests...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants