You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/markup
Earl Warren 87f70979cf
Do not highlight `#number` in documents (#26365)
- Currently the post processing will transform all issue indexes (such as `#6`) into a clickable link.
- This makes sense in an situation like issues or PRs,
where referencing to other issues is quite common
and only referencing their issue index is an handy and efficient way to do it.
- Currently this is also run for documents
(which is the user profile and viewing rendered files),
but in those situations it's less common to reference issues by their index and instead could mean something else.
- This patch disables this post processing for issue index for documents. Matches Github's behavior.
- Added unit tests.
- Resolves https://codeberg.org/Codeberg/Community/issues/1120

Co-authored-by: Gusted <postmaster@gusted.xyz>
2 years ago
..
asciicast Support asciicast files as new markup (#22448) 2 years ago
common Implement FSFE REUSE for golang files (#21840) 2 years ago
console Add context when rendering labels or emojis (#23281) 2 years ago
csv Add context when rendering labels or emojis (#23281) 2 years ago
external Log STDERR of external renderer when it fails (#22442) 2 years ago
markdown Replace `interface{}` with `any` (#25686) 2 years ago
mdstripper Implement FSFE REUSE for golang files (#21840) 2 years ago
orgmode Upgrade go dependencies (#25819) 2 years ago
camo.go Implement FSFE REUSE for golang files (#21840) 2 years ago
camo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
html.go Do not highlight `#number` in documents (#26365) 2 years ago
html_internal_test.go Do not highlight `#number` in documents (#26365) 2 years ago
html_test.go Do not highlight `#number` in documents (#26365) 2 years ago
renderer.go Add RTL rendering support to Markdown (#24816) 2 years ago
renderer_test.go Move `IsReadmeFile*` from `modules/markup/` to `modules/util` (#22877) 2 years ago
sanitizer.go Render plaintext task list items for markdown files (#26186) 2 years ago
sanitizer_test.go Render plaintext task list items for markdown files (#26186) 2 years ago