forgejo/modules
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>
2023-08-07 15:11:25 +02:00
..
actions Fix the bug when getting files changed for pull_request_target event (#26320) 2023-08-05 14:26:06 +08:00
activitypub
analyze
assetfs
auth
avatar
base
cache
charset
container
context
csv
doctor
emoji
eventsource
generate
git Make git batch operations use parent context timeout instead of default timeout (#26325) 2023-08-04 14:50:41 +02:00
gitgraph
graceful
hcaptcha
highlight
hostmatcher
html Refactor backend SVG package and add tests (#26335) 2023-08-05 04:34:59 +00:00
httpcache
httplib
indexer Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2023-07-31 06:28:53 +00:00
issue/template
json
label
lfs
log
markup Do not highlight #number in documents (#26365) 2023-08-07 15:11:25 +02:00
mcaptcha
metrics
migration
mirror
nosql
notification Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2023-07-31 06:28:53 +00:00
options
packages Prevent newline errors with Debian packages (#26332) 2023-08-05 10:59:52 +02:00
paginator
pprof
private
process
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2023-07-31 06:28:53 +00:00
secret
session
setting Fix the wrong derive path (#26271) 2023-08-04 03:41:16 +00:00
sitemap
ssh
storage
structs
svg Refactor backend SVG package and add tests (#26335) 2023-08-05 04:34:59 +00:00
sync
system
templates
test Fix incorrect CLI exit code and duplicate error message (#26346) 2023-08-05 23:36:45 +08:00
testlogger
timeutil
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util
validation
web
webhook