Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Need code line high-light #16

@coanor

Description

@coanor

Is your feature request related to a problem? Please describe.
For large code blocks, we need high-light effect on specific lines, these high light lines are better to explain and anwser the question.

Describe the solution you'd like
Like code line high-light in mkdocs material, the high-light syntax looks like this:

``` py hl_lines="2 3"
def bubble_sort(items):
    for i in range(len(items)):
        for j in range(len(items) - 1 - i):
            if items[j] > items[j + 1]:
                items[j], items[j + 1] = items[j + 1], items[j]
```

and we get the effect:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions