mirror of
https://github.com/go-gitea/gitea
synced 2025-08-15 22:18:26 +00:00
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.
This commit is contained in:
@@ -18,6 +18,9 @@ type RenderConfig struct {
|
||||
TOC bool
|
||||
Lang string
|
||||
yamlNode *yaml.Node
|
||||
|
||||
// Used internally. Cannot be controlled by frontmatter.
|
||||
metaLength int
|
||||
}
|
||||
|
||||
// UnmarshalYAML implement yaml.v3 UnmarshalYAML
|
||||
|
Reference in New Issue
Block a user