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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b1db9b2a14f01ce9c6051a2d9c0b6b2bebd7c2e17b59fcc6c87aa3f9718230e
4
- data.tar.gz: 5831aab250521b679eb50ba4632b3da4eb57d44e795302d180f5238f6d4cdb1a
3
+ metadata.gz: 9f48804b2e2e9e32ea297c3eba934d6d32fa8cef8e9dcfcf4f750253bb8c8ad8
4
+ data.tar.gz: 014e6a472231638a4d6bfd489ecc0a59abc2c8ff6e0fbf3446ce2cc9c899edf4
5
5
  SHA512:
6
- metadata.gz: f4def4cd5a82330750c8918d96941178ee57afaa6615ac9f46bdbcddfff4182a4db1ca6e54fa5ddfc5546846db7daa33448c1358885de95b1660cc9bd5b51807
7
- data.tar.gz: 23661a9d97c2dd71e164d6654bc70eeadcf2878ea684a3e7e009c324861693ee8de81bbb2bc63bfb092c7b770133f74b64b3b45badc55c07a2f4aa6b79c27316
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>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 %}
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: scroll;
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: scroll;
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: scroll;
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: scroll;
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: scroll;
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.13.2
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-13 00:00:00.000000000 Z
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