Closed
Description
Description
Steps to reproduce:
- Go to New Issue page
- Fill in a title, and for content, fill in both YAML front matter and a task list, such as the below:
---
foo: bar
---
- [ ] checkbox
- Click "Create Issue"
- Once the issue is created, a checkbox is rendered. Click the checkbox to make it checked.
- Reload the page
I expected the checkbox to be checked and all other text including front matter to be the same as was originally entered.
Instead, a seemingly random character in the middle of the front matter or other markdown text content, depending on character positions, is replaced by an x
character. Unchecking will replace the character with a space character. The problem has also been observed in pull request descriptions.
Demo: https://try.gitea.io/shravya/testing/issues/1
Gitea Version
1.20.0+rc0-12-g63a429581
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
No response
Operating System
No response
How are you running Gitea?
Using try.gitea.io.
Database
None