New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggling checkbox in task list corrupts markdown when there's YAML front matter #25160
Labels
Comments
lunny
pushed a commit
that referenced
this issue
Jun 13, 2023
Fixes #25160. `data-source-position` of checkboxes in a task list was incorrect whenever there was YAML front matter. This would result in issue content or PR descriptions getting corrupted with random `x` or space characters when a user checked or unchecked a task.
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Jun 13, 2023
…a#25184) Fixes go-gitea#25160. `data-source-position` of checkboxes in a task list was incorrect whenever there was YAML front matter. This would result in issue content or PR descriptions getting corrupted with random `x` or space characters when a user checked or unchecked a task.
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Jun 13, 2023
…a#25184) Fixes go-gitea#25160. `data-source-position` of checkboxes in a task list was incorrect whenever there was YAML front matter. This would result in issue content or PR descriptions getting corrupted with random `x` or space characters when a user checked or unchecked a task.
silverwind
pushed a commit
that referenced
this issue
Jun 13, 2023
…#25227) Backport #25184 by @jtran Fixes #25160. `data-source-position` of checkboxes in a task list was incorrect whenever there was YAML front matter. This would result in issue content or PR descriptions getting corrupted with random `x` or space characters when a user checked or unchecked a task. Co-authored-by: Jonathan Tran <jon@allspice.io>
jtran
added a commit
to AllSpiceIO/gitea
that referenced
this issue
Jun 13, 2023
…a#25184) Fixes go-gitea#25160. `data-source-position` of checkboxes in a task list was incorrect whenever there was YAML front matter. This would result in issue content or PR descriptions getting corrupted with random `x` or space characters when a user checked or unchecked a task.
silverwind
pushed a commit
that referenced
this issue
Jun 13, 2023
…#25236) Backport #25184 by @jtran Closes #25225. Fixes #25160. `data-source-position` of checkboxes in a task list was incorrect whenever there was YAML front matter. This would result in issue content or PR descriptions getting corrupted with random `x` or space characters when a user checked or unchecked a task.
Codeberg-org
pushed a commit
to Codeberg-org/gitea
that referenced
this issue
Jun 23, 2023
…a#25184) (go-gitea#25236) Backport go-gitea#25184 by @jtran Closes go-gitea#25225. Fixes go-gitea#25160. `data-source-position` of checkboxes in a task list was incorrect whenever there was YAML front matter. This would result in issue content or PR descriptions getting corrupted with random `x` or space characters when a user checked or unchecked a task. (cherry picked from commit 1650a26)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Steps to reproduce:
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
The text was updated successfully, but these errors were encountered: