Skip to content

Whitespace trimming inside markdown inline tags inconsistent #23080

Closed
@silverwind

Description

@silverwind

Description

Given mardown source

x ` a` y
x `a ` y
x ` a ` y

Github renders:

Screenshot 2023-02-22 at 17 33 32

x a y
x a y
x a y

Gitea renders:

image

  • Line 1 should render the leading space inside the code element.
  • Line 2 could do with some whitespace after the code element.
  • It may be argued that whitespace should be visible within the code element on line 3.

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions