markdownr 0.5.20 → 0.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 678ffb723dae8f21c01680c7ee90dbf509574b1dd18ca4af4cc09c522e427972
4
- data.tar.gz: d1336da7b8617fa1ef253b8aa61cfd7f393661e2004b8fef50c0d4e553d08bbd
3
+ metadata.gz: 8453e4e0a362ba8e9c10523c1de11a0372971eedacaadc399a37dd3971f20a20
4
+ data.tar.gz: da228300eee2d6e8e03a2d1e501a8ff6fc7ee27bb83706254a8abe7354c5e1d6
5
5
  SHA512:
6
- metadata.gz: 8d212a09f6ae864c4bda2908cb24a87709800e87158f1a6765f73dd52a0a1c9c53666e346c40c59ee2038fc012d08736c042548d443f05f73dc764d8bf802b40
7
- data.tar.gz: 80afc93b81bf4f3546f4cc27b6209063f601ed48dd22e5caadf0f6a6b76eab0a08a175ee989dfb33438437650e8b07edd2fb9567430ab7fba3ac3266d43750ff
6
+ metadata.gz: ac8aefdee7fefc43e3d9282cd612b5a0e8ac9b96e7ab7c710cc8e2d52da10e58d48b03aaf2c35938b87eed09243f98f70528c45eadc841f331ae36cc3a2c3797
7
+ data.tar.gz: cabbff0b16dae2e73ad37339c66bdf231684e53469c782151bc0099414c97d02660f015b92a38f112d433e83b9286ba1a91cf5a52cf59bbc5355e2be79c82fc5
@@ -787,8 +787,8 @@ module MarkdownServer
787
787
 
788
788
  # Returns true when serving an HTML file that should have popup assets injected.
789
789
  # Add additional path prefixes here as needed.
790
- def inject_assets_for_html_path?(relative_path)
791
- relative_path.start_with?("scripture/resources/books/bible")
790
+ def inject_assets_for_html_path?(_relative_path)
791
+ true
792
792
  end
793
793
 
794
794
  # Injects popup CSS and JS into an HTML document before </body>.
@@ -1,3 +1,3 @@
1
1
  module MarkdownServer
2
- VERSION = "0.5.20"
2
+ VERSION = "0.5.21"
3
3
  end
data/views/layout.erb CHANGED
@@ -2104,6 +2104,7 @@
2104
2104
  var href = anchor.getAttribute('href');
2105
2105
  if (!href || isAnchorOnly(href)) { hidePopup(); return; }
2106
2106
  if (!anchor.closest('.md-content') && !anchor.closest('.frontmatter')) { hidePopup(); return; }
2107
+ if (!isLocalMd(href) && !isExternal(href)) { hidePopup(); return; }
2107
2108
  e.preventDefault();
2108
2109
  handleLink(anchor, e.clientX, e.clientY);
2109
2110
  });
@@ -2126,6 +2127,7 @@
2126
2127
  var href = anchor.getAttribute('href');
2127
2128
  if (!href || isAnchorOnly(href)) { hidePopup(); return; }
2128
2129
  if (!anchor.closest('.md-content') && !anchor.closest('.frontmatter')) { hidePopup(); return; }
2130
+ if (!isLocalMd(href) && !isExternal(href)) { hidePopup(); return; }
2129
2131
  e.preventDefault();
2130
2132
  var touch = e.changedTouches[0];
2131
2133
  handleLink(anchor, touch.clientX, touch.clientY);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdownr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.20
4
+ version: 0.5.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dunn