martile 0.7.1 → 0.7.2

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
  SHA1:
3
- metadata.gz: ed3e1957a0c090c496c0e71c27630d957d14969d
4
- data.tar.gz: fb8ea8ab7d332fd7327446610e5abc25b0c18894
3
+ metadata.gz: fc855a6e087fd6a67eaf8556d57f7c62cef56411
4
+ data.tar.gz: 1ae382806102a9bf9c3ada1ab9fd6df97c7b5635
5
5
  SHA512:
6
- metadata.gz: 1f07fd7863ec24b3793e0e0734ade4e233852e13e1ae79a13ebcb0db12c293b31d2e424b5f5e120a1900246fde4b3a3b8bb1c228c85ea3e9361739d2dd9a0437
7
- data.tar.gz: 1f8d52b2d6cd2fb69df10885e65ed9368c3680ae8f96ae49b2658b2da4134dd8681b6057f67b5c77346987afd125b78679f9ae759c742429c512d84e3da052dc
6
+ metadata.gz: 9c209c6cbc7f4232ff811595818f4c9fbd0f0d554ffb1be4cb7caa2a1914658dfa96fbabf9603f974aba64b57ff487dfc04cc59a000ae8d09de65c27bb13d74c
7
+ data.tar.gz: 3a53360139e72bd15d87da0cf65ad5616cbd9514fbc4875041b9c2269f97a187bb11d1a120ad580cd94a7d9881d3aaf5fdfec5c833a689e336fcd9d5b264f2be
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/martile.rb CHANGED
@@ -9,7 +9,7 @@ require 'rdiscount'
9
9
  require 'kvx'
10
10
 
11
11
 
12
- # feature: 8-Sep-2017 An SVG object can now rendered from !s[]()
12
+ # feature: 8-Sep-2017 An SVG doc can now be embedded from !s[]()
13
13
  # feature: 6-Sep-2017 The preparation of a Dynarex table in Markdown is now
14
14
  # done from the Dynarex object
15
15
  # bug fix: 13-Aug-2017 bug fixes: A markdown table is no longer interpreted
@@ -598,9 +598,13 @@ class Martile
598
598
 
599
599
  def svgtag(s)
600
600
 
601
- s.gsub(/\B!s\[\]\((https?:\/\/[^\)]+)\)/) do |match, bo|
602
- "<object data='#{$1}' type='image/svg+xml'></object>"
603
- end
601
+ s.gsub(/\B!s\[\]\((https?:\/\/[^\)]+)\)/) do
602
+
603
+ svg = RXFHelper.read($1).first
604
+ svg.slice!(/.*(?=<svg)/m)
605
+ svg
606
+
607
+ end
604
608
 
605
609
  end
606
610
 
@@ -637,4 +641,4 @@ class Martile
637
641
  s.gsub(/\B(\* +)([^\n]+)\s+(https?:\/\/.*)/,'\1[\2](\3)')
638
642
 
639
643
  end
640
- end
644
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: martile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file