Skip to content

Commit

Permalink
data wrangling slides
Browse files Browse the repository at this point in the history
  • Loading branch information
kstreet13 committed Sep 25, 2024
1 parent 9f4edca commit 8bde0b1
Show file tree
Hide file tree
Showing 7 changed files with 95,885 additions and 472 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
// be compatible with the behavior of Pandoc < 2.8).
document.addEventListener('DOMContentLoaded', function(e) {
var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
var i, h, a;
for (i = 0; i < hs.length; i++) {
h = hs[i];
if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
a = h.attributes;
while (a.length > 0) h.removeAttribute(a[0].name);
}
});
Loading

0 comments on commit 8bde0b1

Please sign in to comment.