1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/web_src/js
silverwind 9c54fef17c
Shorten markdown heading anchors links (#11903)
This changes the links on headings like '# Usage' in markdown from

  `https://host/user/repo#user-content-usage`

to just

  `https://host/user/repo#usage`

matching GitHub and GitLab. The linked id elements still have the prefix
and this behaviour matches GitHub and GitLab too, so JS is needed to
scroll to the active anchor. I suspect it's like that to avoid namespace
collission between user-generated content and other page content.
Compatibilty for old links is included so they will continue to work.

Also included are some enhancements to make the clickable area for the
link icon larger and fix its color on arc-green.

Fixes: https://github.com/go-gitea/gitea/issues/11896
Fixes: https://github.com/go-gitea/gitea/issues/12062
2020-06-26 21:04:22 +08:00
..
components Insert ui divider directly in templates instead of from inside heatmap vue component (#11508) 2020-05-19 21:24:14 +01:00
features [UI] Sortable Tables Header By Click (#7980) 2020-06-24 23:23:05 +01:00
markdown Shorten markdown heading anchors links (#11903) 2020-06-26 21:04:22 +08:00
standalone Reorganize frontend files and tooling (#10168) 2020-02-07 18:09:30 +01:00
vendor Fix gitgraph branch continues after merge (#12044) 2020-06-25 14:37:28 +03:00
index.js Shorten markdown heading anchors links (#11903) 2020-06-26 21:04:22 +08:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
publicpath.js Fix webpack chunk loading with STATIC_URL_PREFIX (#11526) 2020-05-20 23:33:31 +01:00
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
utils.js Move tributejs to npm/webpack (#11497) 2020-05-20 22:00:43 -04:00