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
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
..
actions Fix the bug when getting files changed for `pull_request_target` event (#26320) 2 years ago
activitypub Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
analyze Implement FSFE REUSE for golang files (#21840) 2 years ago
assetfs Skip unuseful error message in dev mode when watching local filesystem (#25919) 2 years ago
auth Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
avatar Remove nfnt/resize and oliamb/cutter (#25999) 2 years ago
base Replace `interface{}` with `any` (#25686) 2 years ago
cache improve unit test for caching (#26185) 2 years ago
charset Replace `interface{}` with `any` (#25686) 2 years ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
context Show branches and tags that contain a commit (#25180) 2 years ago
csv Refactor locale number (#24134) 2 years ago
doctor Upgrade go dependencies (#25819) 2 years ago
emoji Update emoji set to Unicode 15 (#25595) 2 years ago
eventsource Less naked returns (#25713) 2 years ago
generate Bump github.com/golang-jwt/jwt to v5 (#25975) 2 years ago
git Make git batch operations use parent context timeout instead of default timeout (#26325) 2 years ago
gitgraph Add context cache as a request level cache (#22294) 2 years ago
graceful Allow the use of alternative net.Listener implementations by downstreams (#25855) 2 years ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 2 years ago
highlight Upgrade go dependencies (#25819) 2 years ago
hostmatcher Implement FSFE REUSE for golang files (#21840) 2 years ago
html Refactor backend SVG package and add tests (#26335) 2 years ago
httpcache Less naked returns (#25713) 2 years ago
httplib Less naked returns (#25713) 2 years ago
indexer Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
issue/template Replace `interface{}` with `any` (#25686) 2 years ago
json Replace `interface{}` with `any` (#25686) 2 years ago
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs Rewrite logger system (#24726) 2 years ago
log Use stderr as fallback if the log file can't be opened (#26074) 2 years ago
markup Do not highlight `#number` in documents (#26365) 2 years ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics Use a separate admin page to show global stats, remove `actions` stat (#25062) 2 years ago
migration Replace `interface{}` with `any` (#25686) 2 years ago
mirror Improve queue and logger context (#24924) 2 years ago
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
notification Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
options Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
packages Prevent newline errors with Debian packages (#26332) 2 years ago
paginator Use more specific test methods (#24265) 2 years ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Replace `interface{}` with `any` (#25686) 2 years ago
process Less naked returns (#25713) 2 years ago
proxy Use proxy for pull mirror (#22771) 2 years ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" (#25974) 2 years ago
queue Calculate MAX_WORKERS default value by CPU number (#26177) 2 years ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Use correct captured group range when parsing cross-reference (#22672) 2 years ago
regexplru Upgrade go dependencies (#25819) 2 years ago
repository Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
secret Improve decryption failure message (#24573) 2 years ago
session Replace `interface{}` with `any` (#25686) 2 years ago
setting Fix the wrong derive path (#26271) 2 years ago
sitemap Fix sitemap (#22272) 2 years ago
ssh Refactor path & config system (#25330) 2 years ago
storage Replace `interface{}` with `any` (#25686) 2 years ago
structs Doc update swagger doc for POST /orgs/{org}/teams (#26155) 2 years ago
svg Refactor backend SVG package and add tests (#26335) 2 years ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Implement FSFE REUSE for golang files (#21840) 2 years ago
templates Replace `interface{}` with `any` (#25686) 2 years ago
test Fix incorrect CLI exit code and duplicate error message (#26346) 2 years ago
testlogger Replace `interface{}` with `any` (#25686) 2 years ago
timeutil Fix incorrect webhook time and use relative-time to display it (#24477) 2 years ago
translation Replace `interface{}` with `any` (#25686) 2 years ago
turnstile Add new captcha: cloudflare turnstile (#22369) 2 years ago
typesniffer Do not recognize text files as audio (#23355) 2 years ago
updatechecker Implement FSFE REUSE for golang files (#21840) 2 years ago
upload Implement FSFE REUSE for golang files (#21840) 2 years ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Less naked returns (#25713) 2 years ago
validation Replace `interface{}` with `any` (#25686) 2 years ago
web Fix incorrect router logger (#26137) 2 years ago
webhook New webhook trigger for receiving Pull Request review requests (#24481) 2 years ago