Make SVG size argument optional (#12814)

Now defaults to 16 on both frontend and backend.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind 2020-09-11 22:19:00 +02:00 committed by GitHub
parent 26c4a049da
commit ffddf3f8a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 458 additions and 455 deletions

View file

@ -23,7 +23,7 @@ export default function initMarkdownAnchors() {
const a = document.createElement('a');
a.classList.add('anchor');
a.setAttribute('href', `#${encodeURIComponent(originalId)}`);
a.innerHTML = svg('octicon-link', 16);
a.innerHTML = svg('octicon-link');
heading.prepend(a);
}