gitea/modules/markup/markdown
Jonathan Tran 1650a26eb5
Fix task list checkbox toggle to work with YAML front matter () ()
Backport https://github.com/go-gitea/gitea/pull/25184 by @jtran
Closes .

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.
..
math Implement FSFE REUSE for golang files ()
ast.go Fix task list checkbox toggle to work with YAML front matter () ()
convertyaml.go Implement FSFE REUSE for golang files ()
goldmark.go Fix task list checkbox toggle to work with YAML front matter () ()
markdown.go Fix task list checkbox toggle to work with YAML front matter () ()
markdown_test.go Fix task list checkbox toggle to work with YAML front matter () ()
meta.go Implement FSFE REUSE for golang files ()
meta_test.go Implement FSFE REUSE for golang files ()
renderconfig.go Fix task list checkbox toggle to work with YAML front matter () ()
renderconfig_test.go Implement FSFE REUSE for golang files ()
toc.go Implement FSFE REUSE for golang files ()