pandoc-markdown-jekyll-theme 0.13.2 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/enable_checkboxes.html +1 -12
- data/_includes/math.html +1 -14
- data/assets/css/theme.css +5 -5
- data/assets/js/enable_checkboxes.js +10 -0
- data/assets/js/enable_katex.js +15 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f48804b2e2e9e32ea297c3eba934d6d32fa8cef8e9dcfcf4f750253bb8c8ad8
|
4
|
+
data.tar.gz: 014e6a472231638a4d6bfd489ecc0a59abc2c8ff6e0fbf3446ce2cc9c899edf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90997c4de5994873392b66d88e4931477e4c89574a324e5cf18004f5ddc2f50ae721505e94571d7f99d091b0eb820cf9f202af760d796c018c9ea820465d0f1b
|
7
|
+
data.tar.gz: 68655f46209c03dc09e24f6a10ae2e9ce2b374634b8d9b879f8b5f80d77d47147249278b478e3e3a8c122ee7a983f1d9ad8ab0ef8a0ca1129950295617a44c32
|
@@ -1,12 +1 @@
|
|
1
|
-
<script>
|
2
|
-
;(function() {
|
3
|
-
// Non-essential if user has JavaScript off. Just makes checkboxes look nicer.
|
4
|
-
var selector = '.task-list > li > input[type="checkbox"]';
|
5
|
-
var checkboxes = document.querySelectorAll(selector);
|
6
|
-
Array.from(checkboxes).forEach((checkbox) => {
|
7
|
-
var wasChecked = checkbox.checked;
|
8
|
-
checkbox.disabled = false;
|
9
|
-
checkbox.addEventListener('click', (ev) => {ev.target.checked = wasChecked});
|
10
|
-
});
|
11
|
-
})();
|
12
|
-
</script>
|
1
|
+
<script src="{{ site.baseurl }}/assets/js/enable_checkboxes.js"></script>
|
data/_includes/math.html
CHANGED
@@ -1,18 +1,5 @@
|
|
1
1
|
{% if page.math %}
|
2
2
|
<script src="{{ site.baseurl }}/assets/libs/KaTeX/0.11.1/katex.min.js"></script>
|
3
|
-
<script
|
4
|
-
var mathElements = document.getElementsByClassName("math");
|
5
|
-
var macros = [];
|
6
|
-
for (var i = 0; i < mathElements.length; i++) {
|
7
|
-
var texText = mathElements[i].firstChild;
|
8
|
-
if (mathElements[i].tagName == "SPAN") {
|
9
|
-
katex.render(texText.data, mathElements[i], {
|
10
|
-
displayMode: mathElements[i].classList.contains('display'),
|
11
|
-
throwOnError: false,
|
12
|
-
macros: macros,
|
13
|
-
fleqn: false
|
14
|
-
});
|
15
|
-
}}});
|
16
|
-
</script>
|
3
|
+
<script src="{{ site.baseurl }}/assets/js/enable_katex.js"></script>
|
17
4
|
<link rel="stylesheet" href="{{ site.baseurl }}/assets/libs/KaTeX/0.11.1/katex.min.css">
|
18
5
|
{% endif %}
|
data/assets/css/theme.css
CHANGED
@@ -868,7 +868,7 @@ nav#TOC > input:checked + ul {
|
|
868
868
|
|
869
869
|
max-width: calc((100vw - var(--main-width)) / 2 - 2 * var(--line-height));
|
870
870
|
max-height: calc(100vh - 2 * var(--line-height));
|
871
|
-
overflow-y:
|
871
|
+
overflow-y: auto;
|
872
872
|
}
|
873
873
|
|
874
874
|
nav#TOC label {
|
@@ -952,7 +952,7 @@ nav#TOC > input:checked + ul {
|
|
952
952
|
|
953
953
|
.wide {
|
954
954
|
width: 100%;
|
955
|
-
overflow-x:
|
955
|
+
overflow-x: auto;
|
956
956
|
}
|
957
957
|
|
958
958
|
.wide.extra-wide {
|
@@ -1007,7 +1007,7 @@ nav#TOC > input:checked + ul {
|
|
1007
1007
|
|
1008
1008
|
.wide {
|
1009
1009
|
width: 100%;
|
1010
|
-
overflow-x:
|
1010
|
+
overflow-x: auto;
|
1011
1011
|
overflow-y: hidden;
|
1012
1012
|
}
|
1013
1013
|
|
@@ -1073,7 +1073,7 @@ nav#TOC > input:checked + ul {
|
|
1073
1073
|
|
1074
1074
|
.wide {
|
1075
1075
|
width: var(--main-width);
|
1076
|
-
overflow-x:
|
1076
|
+
overflow-x: auto;
|
1077
1077
|
overflow-y: hidden;
|
1078
1078
|
}
|
1079
1079
|
|
@@ -1125,7 +1125,7 @@ nav#TOC > input:checked + ul {
|
|
1125
1125
|
|
1126
1126
|
.wide {
|
1127
1127
|
width: 100%;
|
1128
|
-
overflow-x:
|
1128
|
+
overflow-x: auto;
|
1129
1129
|
overflow-y: hidden;
|
1130
1130
|
}
|
1131
1131
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
;(function() {
|
2
|
+
// Non-essential if user has JavaScript off. Just makes checkboxes look nicer.
|
3
|
+
var selector = '.task-list > li > input[type="checkbox"]';
|
4
|
+
var checkboxes = document.querySelectorAll(selector);
|
5
|
+
Array.from(checkboxes).forEach((checkbox) => {
|
6
|
+
var wasChecked = checkbox.checked;
|
7
|
+
checkbox.disabled = false;
|
8
|
+
checkbox.addEventListener('click', (ev) => {ev.target.checked = wasChecked});
|
9
|
+
});
|
10
|
+
})();
|
@@ -0,0 +1,15 @@
|
|
1
|
+
;(function() {
|
2
|
+
document.addEventListener("DOMContentLoaded", function () {
|
3
|
+
var mathElements = document.getElementsByClassName("math");
|
4
|
+
var macros = [];
|
5
|
+
for (var i = 0; i < mathElements.length; i++) {
|
6
|
+
var texText = mathElements[i].firstChild;
|
7
|
+
if (mathElements[i].tagName == "SPAN") {
|
8
|
+
katex.render(texText.data, mathElements[i], {
|
9
|
+
displayMode: mathElements[i].classList.contains('display'),
|
10
|
+
throwOnError: false,
|
11
|
+
macros: macros,
|
12
|
+
fleqn: false
|
13
|
+
});
|
14
|
+
}}});
|
15
|
+
})();
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandoc-markdown-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Zimmerman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll-pandoc
|
@@ -88,6 +88,8 @@ files:
|
|
88
88
|
- _template.html5
|
89
89
|
- assets/css/skylighting-solarized-theme.css
|
90
90
|
- assets/css/theme.css
|
91
|
+
- assets/js/enable_checkboxes.js
|
92
|
+
- assets/js/enable_katex.js
|
91
93
|
- assets/libs/KaTeX/0.11.1/fonts/KaTeX_AMS-Regular.ttf
|
92
94
|
- assets/libs/KaTeX/0.11.1/fonts/KaTeX_AMS-Regular.woff
|
93
95
|
- assets/libs/KaTeX/0.11.1/fonts/KaTeX_AMS-Regular.woff2
|