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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +9 -5
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc855a6e087fd6a67eaf8556d57f7c62cef56411
|
4
|
+
data.tar.gz: 1ae382806102a9bf9c3ada1ab9fd6df97c7b5635
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
602
|
-
|
603
|
-
|
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
metadata.gz.sig
CHANGED
Binary file
|