Skip to content

Highlighting code blocks: leading spaces should be counted #2573

Description

@damithc

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions