-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Hide empty <a> tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> | ||
// v0.0.1 | ||
// Written by JooYoung Seo ([email protected]) and Atsushi Yasumoto on June 1st, 2020. | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
const codeList = document.getElementsByClassName("sourceCode"); | ||
for (var i = 0; i < codeList.length; i++) { | ||
var linkList = codeList[i].getElementsByTagName('a'); | ||
for (var j = 0; j < linkList.length; j++) { | ||
if (linkList[j].innerHTML === "") { | ||
linkList[j].setAttribute('aria-hidden', 'true'); | ||
} | ||
} | ||
} | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Hide empty <a> tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> | ||
// v0.0.1 | ||
// Written by JooYoung Seo ([email protected]) and Atsushi Yasumoto on June 1st, 2020. | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
const codeList = document.getElementsByClassName("sourceCode"); | ||
for (var i = 0; i < codeList.length; i++) { | ||
var linkList = codeList[i].getElementsByTagName('a'); | ||
for (var j = 0; j < linkList.length; j++) { | ||
if (linkList[j].innerHTML === "") { | ||
linkList[j].setAttribute('aria-hidden', 'true'); | ||
} | ||
} | ||
} | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Hide empty <a> tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> | ||
// v0.0.1 | ||
// Written by JooYoung Seo ([email protected]) and Atsushi Yasumoto on June 1st, 2020. | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
const codeList = document.getElementsByClassName("sourceCode"); | ||
for (var i = 0; i < codeList.length; i++) { | ||
var linkList = codeList[i].getElementsByTagName('a'); | ||
for (var j = 0; j < linkList.length; j++) { | ||
if (linkList[j].innerHTML === "") { | ||
linkList[j].setAttribute('aria-hidden', 'true'); | ||
} | ||
} | ||
} | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Hide empty <a> tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> | ||
// v0.0.1 | ||
// Written by JooYoung Seo ([email protected]) and Atsushi Yasumoto on June 1st, 2020. | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
const codeList = document.getElementsByClassName("sourceCode"); | ||
for (var i = 0; i < codeList.length; i++) { | ||
var linkList = codeList[i].getElementsByTagName('a'); | ||
for (var j = 0; j < linkList.length; j++) { | ||
if (linkList[j].innerHTML === "") { | ||
linkList[j].setAttribute('aria-hidden', 'true'); | ||
} | ||
} | ||
} | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Hide empty <a> tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> | ||
// v0.0.1 | ||
// Written by JooYoung Seo ([email protected]) and Atsushi Yasumoto on June 1st, 2020. | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
const codeList = document.getElementsByClassName("sourceCode"); | ||
for (var i = 0; i < codeList.length; i++) { | ||
var linkList = codeList[i].getElementsByTagName('a'); | ||
for (var j = 0; j < linkList.length; j++) { | ||
if (linkList[j].innerHTML === "") { | ||
linkList[j].setAttribute('aria-hidden', 'true'); | ||
} | ||
} | ||
} | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.