pandoc-markdown-jekyll-theme 0.13.1 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c621a88c35f3954e8f7563541e1c1d4bd9c94e4a19d571ae6e54d0fc6782b95
4
- data.tar.gz: 729354849a8a682434e28f99898db347034660654eceac153a8c02a344940876
3
+ metadata.gz: b4cc3e28e8e1a5ec572f01a50e611e79b2e8061a685c08ec35971c3ddbdff77a
4
+ data.tar.gz: 6b58ff62fbbf5dcd3997eb71985cd302841fe14f01b737237318985aebde9439
5
5
  SHA512:
6
- metadata.gz: 02d5e94b9c17e48bfb5fa620c32d3ee15ab16d160d6256f37533cecff255d9c878ab325074afc867cca6efa58180b72a9bcaa319c0db75902bc2be321dfee102
7
- data.tar.gz: ad9284dead28b2d93f94038a028ff13183a8fb5929bd22977b261bb65e933eb8f50298aec0216ea76ffbedd188fe7650a600da4f14c38df7a00f1c18eb63658e
6
+ metadata.gz: a4501d4aebb5825d60f4874a5d3e96a593617c9cbcab6a3ffdcc077d36574f94065615f61915c971e653a714c4d2656c12202c60d04f44d52fb5668d6f725ac2
7
+ data.tar.gz: aae174d948461308b69dc380640ecf2b4a39093cd870447fa7edede1829262feb5d4cbda189550242af1490f9ef3071975dc855f36b567cf64901abca562d6d8
@@ -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
- <script src="{{ site.baseurl }}/assets/js/katex-0.11.1.min.js"></script>
3
- <script>document.addEventListener("DOMContentLoaded", function () {
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>
17
- <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/katex-0.11.1.min.css">
2
+ <script src="{{ site.baseurl }}/assets/libs/KaTeX/0.11.1/katex.min.js"></script>
3
+ <script src="{{ site.baseurl }}/assets/js/enable_katex.js"></script>
4
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/libs/KaTeX/0.11.1/katex.min.css">
18
5
  {% endif %}
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandoc-markdown-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Zimmerman
@@ -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