File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff Large diffs are not rendered by default.
Load diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 4141 };
4242 </script>
4343
44+ <script>// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
45+ // be compatible with the behavior of Pandoc < 2.8).
46+ document.addEventListener('DOMContentLoaded', function(e) {
47+ var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
48+ var i, h, a;
49+ for (i = 0; i < hs.length; i++) {
50+ h = hs[i];
51+ if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
52+ a = h.attributes;
53+ while (a.length > 0) h.removeAttribute(a[0].name);
54+ }
55+ });
56+ </script>
4457 <style type="text/css">@font-face {
4558font-family: 'Open Sans';
4659font-style: normal;
Load diff Large diffs are not rendered by default.
Load diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments