Merge pull request #1373 from microsoft/nimullen/restrictlinking

Restrict linking to only the 3-17 specification.
This commit is contained in:
Dirk Bäumer 2021-11-08 18:10:47 +01:00 committed by GitHub
commit d4a43c77ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,6 @@
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="{{ site.baseurl }}/js/page.js"></script>
<script type="text/javascript">
var linkableTypes = {
{% for linkableGroup in site.data.linkableTypes %}
@ -29,6 +28,11 @@
</script>
<script type="text/javascript">
if (window.location.pathname.indexOf("3-17") === -1) {
// Currently we don't support linking on other versions of the document.
return;
}
function tryGetAssociatedLink(name) {
var link = linkableTypes[name];