Skip to content

Commit

Permalink
ongoing
Browse files Browse the repository at this point in the history
  • Loading branch information
nplatonov committed Sep 18, 2024
1 parent 270df81 commit d094fd5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions site_libs/header-attrs-2.28/header-attrs.js
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);
}
});
5 changes: 4 additions & 1 deletion site_libs/moon_reader.css
Original file line number Diff line number Diff line change
Expand Up @@ -2307,9 +2307,12 @@ a[href="#fn"] .hovertext:before {
}
blockquote {
margin: 0.5em 0.5em;
padding-left: 0.3em;
padding: 0.2em 0.0em 0.2em 0.3em;
font-size: 90%;
}
blockquote p:last-of-type {
margin-bottom: 0em !important;
}
.mainbar p:last-child {
/* border: 1px solid red;*/
/* margin-bottom: 0px;*/
Expand Down

0 comments on commit d094fd5

Please sign in to comment.