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

Highlighting code blocks: leading spaces should be counted #2573

Open
damithc opened this issue Sep 13, 2024 · 0 comments
Open

Highlighting code blocks: leading spaces should be counted #2573

damithc opened this issue Sep 13, 2024 · 0 comments

Comments

@damithc
Copy link
Contributor

damithc commented Sep 13, 2024

Context: I was trying to highlight these leading spaces, but was not able to.
image

Consider the following code:

```{highlight-lines="[:4]"}
  abcd
````

Expected: highlight ab and the two spaces in front
Actual: highlights abcd

So, it seems the current counting doesn't include leading spaces.

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

No branches or pull requests

1 participant