aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/_layouts/default.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index b672ef67..b6bfee68 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -121,10 +121,9 @@
<!-- Javascript to automatically fix links to files outside docs/ -->
<script>
- $("a[href^='../']")
- .each(function () {
- this.href = $(this).attr("href").replace(/^\.\./, "https://github.com/KevinOConnor/klipper/blob/master");
- });
+ $('.markdown-body').find('a[href^="../"]').each(function() {
+ this.href = $(this).attr("href").replace(/^\.\./, "https://github.com/KevinOConnor/klipper/blob/master");
+ });
</script>
</body>
</html>