Empty comment render, but there is text #14520

Closed
opened 2025-11-02 11:15:07 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @stuzer05 on GitHub (May 23, 2025).

Description

Put this text in comment and save

<?php

test

Image

will see empty comment render

Image

Gitea Version

1.25.0+dev-48-gb6bf128f1e

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

binary

Database

None

Originally created by @stuzer05 on GitHub (May 23, 2025). ### Description Put this text in comment and save ``` <?php test ``` ![Image](https://github.com/user-attachments/assets/0a6b4807-7359-418b-b746-38d770302afd) will see empty comment render ![Image](https://github.com/user-attachments/assets/ff807599-f114-4d2f-94ad-358e7c8213f3) ### Gitea Version 1.25.0+dev-48-gb6bf128f1e ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? binary ### Database None
GiteaMirror added the issue/not-a-bug label 2025-11-02 11:15:07 -06:00
Author
Owner

@wxiaoguang commented on GitHub (May 23, 2025):

Not a bug. The same as GitHub

<tag ... is invalid embeded HTML for markdown

@wxiaoguang commented on GitHub (May 23, 2025): Not a bug. The same as GitHub `<tag ...` is invalid embeded HTML for markdown
Author
Owner

@stuzer05 commented on GitHub (May 23, 2025):

Not a bug. The same as GitHub

<tag ... is invalid embeded HTML for markdown

Shouldn't tag be closed <?php> to be invalid?

@stuzer05 commented on GitHub (May 23, 2025): > Not a bug. The same as GitHub > > `<tag ...` is invalid embeded HTML for markdown Shouldn't tag be closed `<?php>` to be invalid?
Author
Owner

@wxiaoguang commented on GitHub (May 25, 2025):

Shouldn't tag be closed <?php> to be invalid?

I don't see why it should be valid.

<?php>

You see nothing below:

Image


<?php>
@wxiaoguang commented on GitHub (May 25, 2025): > Shouldn't tag be closed `<?php>` to be invalid? I don't see why it should be valid. ``` <?php> ``` You see nothing below: ![Image](https://github.com/user-attachments/assets/6030643b-9cb5-4b44-a139-65a136d01d90) ---- <?php>
Author
Owner

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

This one will fix: Fix commit message rendering and some UI problems #34680

@wxiaoguang commented on GitHub (Jun 10, 2025): This one will fix: Fix commit message rendering and some UI problems #34680
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14520