mirror of
1
Fork 0
forgejo/modules/markup/markdown
Jonathan Tran c34b605314
Fix task list checkbox toggle to work with YAML front matter (#25184) (#25236)
Backport https://github.com/go-gitea/gitea/pull/25184 by @jtran
Closes #25225.

Fixes https://github.com/go-gitea/gitea/issues/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 1650a26eb5)
2023-06-18 22:49:04 +02:00
..
math Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
ast.go Fix task list checkbox toggle to work with YAML front matter (#25184) (#25236) 2023-06-18 22:49:04 +02:00
convertyaml.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
goldmark.go Fix task list checkbox toggle to work with YAML front matter (#25184) (#25236) 2023-06-18 22:49:04 +02:00
markdown.go Fix task list checkbox toggle to work with YAML front matter (#25184) (#25236) 2023-06-18 22:49:04 +02:00
markdown_test.go Fix task list checkbox toggle to work with YAML front matter (#25184) (#25236) 2023-06-18 22:49:04 +02:00
meta.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
meta_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
renderconfig.go Fix task list checkbox toggle to work with YAML front matter (#25184) (#25236) 2023-06-18 22:49:04 +02:00
renderconfig_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
toc.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00