Skip to content

Expanded diff sections have odd syntax highlighing #35252

@silverwind

Description

@silverwind

When rendering a JSON file, keys are wrapped in <span class="nt">, but in a expanded diff section fetched from blob_excerpt endpoints, they are incorrectly rendered as <span class="s2">, resulting in incorrect syntax highlighting.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    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