pandoc-markdown-jekyll-theme 0.13.2 → 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: 4b1db9b2a14f01ce9c6051a2d9c0b6b2bebd7c2e17b59fcc6c87aa3f9718230e
4
- data.tar.gz: 5831aab250521b679eb50ba4632b3da4eb57d44e795302d180f5238f6d4cdb1a
3
+ metadata.gz: b4cc3e28e8e1a5ec572f01a50e611e79b2e8061a685c08ec35971c3ddbdff77a
4
+ data.tar.gz: 6b58ff62fbbf5dcd3997eb71985cd302841fe14f01b737237318985aebde9439
5
5
  SHA512:
6
- metadata.gz: f4def4cd5a82330750c8918d96941178ee57afaa6615ac9f46bdbcddfff4182a4db1ca6e54fa5ddfc5546846db7daa33448c1358885de95b1660cc9bd5b51807
7
- data.tar.gz: 23661a9d97c2dd71e164d6654bc70eeadcf2878ea684a3e7e009c324861693ee8de81bbb2bc63bfb092c7b770133f74b64b3b45badc55c07a2f4aa6b79c27316
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
2
  <script src="{{ site.baseurl }}/assets/libs/KaTeX/0.11.1/katex.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>
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 %}
@@ -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.2
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