mirror of https://github.com/go-gitea/gitea.git
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.
The visitLinksForShortLinks feature would look inside of an <a> tag and run shortLinkProcessorFull on any text, which attempts to create links out of potential 'short links' like [[test]] [[link|example]] etc... This makes no sense because you can't have nested links within an <a> tag. Specifically, the html5 standard says <a> tags can't include interactive content if they contain the href attribute: http://w3c.github.io/html/single-page.html#the-a-element And also defines an <a> element with a href attribute as interactive: http://w3c.github.io/html/single-page.html#interactive-content Therefore you can't really put a link inside of another link. In practice none of this works anyways since browsers won't render it, it would probably be broken if they tried, and it is causing a bug (#4946). No current tests rely on this behavior either. This removes the feature and also explicitly excludes the current visitNodeForShortLinks from looking in <a> tags. |
6 years ago | |
---|---|---|
.. | ||
auth | 6 years ago | |
avatar | 8 years ago | |
base | 6 years ago | |
cache | 7 years ago | |
context | 6 years ago | |
cron | 8 years ago | |
generate | 7 years ago | |
gzip | 6 years ago | |
highlight | 8 years ago | |
httplib | 7 years ago | |
indexer | 6 years ago | |
lfs | 6 years ago | |
log | 6 years ago | |
mailer | 6 years ago | |
markup | 6 years ago | |
metrics | 6 years ago | |
minwinsvc | 8 years ago | |
notification | 6 years ago | |
options | 8 years ago | |
pprof | 7 years ago | |
private | 6 years ago | |
process | 7 years ago | |
public | 6 years ago | |
recaptcha | 7 years ago | |
search | 7 years ago | |
setting | 6 years ago | |
ssh | 6 years ago | |
structs | 6 years ago | |
sync | 8 years ago | |
templates | 6 years ago | |
test | 6 years ago | |
uploader | 6 years ago | |
user | 7 years ago | |
util | 6 years ago | |
validation | 7 years ago |