diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-12-23 16:38:50 -0600 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-12-23 22:38:50 +0000 |
commit | e6ceb6880a8615ad5b8b6a88a0b1bfbd85f4033c (patch) | |
tree | 5ffdd08dbf265b35f1405683242a4c8c80ff41eb /routers/api/v1/misc | |
parent | 071e7c4f0a31ee8b2039b90bb478f13cac62abae (diff) | |
download | gitea-e6ceb6880a8615ad5b8b6a88a0b1bfbd85f4033c.tar.gz gitea-e6ceb6880a8615ad5b8b6a88a0b1bfbd85f4033c.zip |
Prefix all user-generated IDs in markup (#9477)
* Prefix all user-generated IDs in markup
* Add user-content- to IDs in unit-tests
* fixup markdown_test.go
* update the hrefs for the wiki test
* Add blackfriday extension regex
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers/api/v1/misc')
-rw-r--r-- | routers/api/v1/misc/markdown_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go index 47e99d2f06..716b9e59f7 100644 --- a/routers/api/v1/misc/markdown_test.go +++ b/routers/api/v1/misc/markdown_test.go @@ -87,11 +87,11 @@ Here are some links to the most important topics. You can find the full list of [[images/icon-bug.png]] `, // rendered - `<h2 id="what-is-wine-staging">What is Wine Staging?</h2> + `<h2 id="user-content-what-is-wine-staging">What is Wine Staging?</h2> <p><strong>Wine Staging</strong> on website <a href="http://wine-staging.com" rel="nofollow">wine-staging.com</a>.</p> -<h2 id="quick-links">Quick Links</h2> +<h2 id="user-content-quick-links">Quick Links</h2> <p>Here are some links to the most important topics. You can find the full list of pages at the sidebar.</p> |