Code with strikethrough in markdown #14628

Open
opened 2025-11-02 11:18:08 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @stone-zeng on GitHub (Jun 20, 2025).

Description

Code with strikethrough (like ~~`code`~~) will be rendered with double delete lines. It may be resolved by removing the following CSS rule:

.markup del code {
  text-decoration: inherit;
}

Note that this issue can be found in GitHub as well.

Screenshots

Image

Gitea Version

1.25

Can you reproduce the bug on the Gitea demo site?

Yes. See See https://demo.gitea.com/stone-zeng/test#readme.

Operating System

No response

Browser Version

Chrome 138.0 and Firefox 140.0

Originally created by @stone-zeng on GitHub (Jun 20, 2025). ### Description Code with strikethrough (like ``~~`code`~~``) will be rendered with double delete lines. It may be resolved by removing the following CSS rule: ```css .markup del code { text-decoration: inherit; } ``` Note that this issue can be found in GitHub as well. ### Screenshots ![Image](https://github.com/user-attachments/assets/cba3832a-8e3b-4983-b5af-182a6e08540b) ### Gitea Version 1.25 ### Can you reproduce the bug on the Gitea demo site? Yes. See See https://demo.gitea.com/stone-zeng/test#readme. ### Operating System _No response_ ### Browser Version Chrome 138.0 and Firefox 140.0
GiteaMirror added the topic/uitype/bug labels 2025-11-02 11:18:08 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jun 20, 2025):

Interesting .... the same as GitHub .....

Image

@wxiaoguang commented on GitHub (Jun 20, 2025): Interesting .... the same as GitHub ..... ![Image](https://github.com/user-attachments/assets/02478ee8-7350-4d35-a9a3-d4a3ce056a4c)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14628