We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3f3965 commit 042cedcCopy full SHA for 042cedc
th-script-snippet.html
@@ -1,7 +1,9 @@
1
<script type="text/javascript">
2
// In order to override default notebook styles we need a specific class on our markdown area
3
- const els = document.getElementsByClassName('markdown-zone');
4
- for (let i = 0; i < els.length; i++) {
5
- els[i].classList.add('markdown--jupyter-notebook');
6
- }
7
-</script>
+ document.querySelectorAll('.markdown-zone').forEach(el => {
+ el.classList.add('markdown--jupyter-notebook');
+ // And I want all child links to open a new tab
+ el.querySelectorAll('a').forEach(a => a.setAttribute('target', '_blank'));
+ });
8
+</script>
9
+
0 commit comments