A small menubar app that allows you to switch between R versions quickly (if you have multiple versions of R framework installed).
https://rud.is/rswitch
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
507 B
13 lines
507 B
4 years ago
|
// 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);
|
||
|
}
|
||
|
});
|