mirror of
https://github.com/msberends/AMR.git
synced 2025-03-13 11:23:06 +01:00
Compare commits
2 Commits
ac73a8d849
...
55457d0ab6
Author | SHA1 | Date | |
---|---|---|---|
55457d0ab6 | |||
d0f38a03d5 |
12
docs/articles/AMR_files/header-attrs-2.8/header-attrs.js
Normal file
12
docs/articles/AMR_files/header-attrs-2.8/header-attrs.js
Normal file
@ -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);
|
||||||
|
}
|
||||||
|
});
|
@ -45,7 +45,7 @@ expect_equal(summary(as.rsi(c("S", "R"))),
|
|||||||
"- %S" = "50.0% (n=1)",
|
"- %S" = "50.0% (n=1)",
|
||||||
"- %I" = " 0.0% (n=0)"), class = c("summaryDefault", "table")))
|
"- %I" = " 0.0% (n=0)"), class = c("summaryDefault", "table")))
|
||||||
expect_identical(as.logical(lapply(example_isolates, is.rsi.eligible)),
|
expect_identical(as.logical(lapply(example_isolates, is.rsi.eligible)),
|
||||||
rep(FALSE, length(example_isolates)))
|
as.logical(lapply(example_isolates, is.rsi)))
|
||||||
expect_error(as.rsi.mic(as.mic(16)))
|
expect_error(as.rsi.mic(as.mic(16)))
|
||||||
expect_error(as.rsi.disk(as.disk(16)))
|
expect_error(as.rsi.disk(as.disk(16)))
|
||||||
expect_error(get_guideline("this one does not exist"))
|
expect_error(get_guideline("this one does not exist"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user