martile 0.5.15 → 0.5.16

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
  SHA1:
3
- metadata.gz: f4c4bb53c3a2db8a290a2ef1b14033f3f30635e4
4
- data.tar.gz: beb41f3efaaf51f80ba88476153f6754308df560
3
+ metadata.gz: 51d9bfd0397446cc3b5fe981c4e2f05e17861d48
4
+ data.tar.gz: 813cb293ff7b1c4916f36ff0fc5b4ddbbef3680b
5
5
  SHA512:
6
- metadata.gz: ce0c1e9486d507153ff58a29481e7ea846d3b9c0ca970df24f8f75e250e7824bca9faf89b7b05582e28b7caaaf3c8a0160aee6ed04297cabfe3940d0a3a97de5
7
- data.tar.gz: 91516f2439bd5c8a419deaa15513819dfc89e5cfed4477a5df2d35b2a3b407b621d9c95eee46255779aac40509fd54688529859bde6abfbad897f2ba80a083cf
6
+ metadata.gz: 14ca09d1d556a79e5789e9bbc02b71fe7e90b92589d193c19fa8460d7d418ecef77da66c02aa66864452fe845d4ffae3415567d6d6c4fccad6cfc952e1b7e47b
7
+ data.tar.gz: 0ce31a6309eacb74a08fc72bec1842a7c0e0638ce984f230745efc21fa2a5ea446a9991e6f86e48c342e76ebc4573327b7f1845257674fc2b549f1d16a55198a
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- s'(Q�
2
- ���U ��C ��^�-q�]�9���j�mt��'(����W�͜'G~ZY)�@a��u=��@X_��� ���
1
+ S�&���s�< ���]#O�NM�Q�k� �̶���ǫ��`
2
+ �|�e8P�F8��k�H�!k�N�J���{j��_T<� �{T�/�[�$���k����5�qj��WU��F'WF�1 �")�&��_>�/�2��ˍ��n�>�xunP}9Й<�R
3
+ GIS��c#�pgd�gMk�*�.�
data.tar.gz.sig CHANGED
Binary file
data/lib/martile.rb CHANGED
@@ -11,6 +11,8 @@ require 'rdiscount'
11
11
  # feature: 31-May-2015: Transforms a kind-of markdown URL to an audio tag
12
12
  # e.g. !a[](http://someurl) transforms to ). Transforms a kind-of
13
13
  # markdown URL to an video tag e.g. !v[](http://someurl) transforms to )
14
+ # bug fix: The inner Martile call within a Section now
15
+ # ignores domain labels to avoid duplication of URL scanning.
14
16
  # feature: 29-Mar-2015: Borrowed the strikethru feature from Mtlite
15
17
  # bug fix: 28-Mar-2015: Fixes a bug introduced on the 20-Mar-2015 relating to
16
18
  # Markdown lists not being converted to HTML
@@ -355,7 +357,8 @@ class Martile
355
357
  list = r.pop
356
358
  r << ["%s%s</section>" %
357
359
  [list[0], \
358
- RDiscount.new(Martile.new(list[1..-1].join).to_html).to_html
360
+ RDiscount.new(Martile.new(list[1..-1].join, \
361
+ ignore_domainlabel: true).to_html).to_html
359
362
  ]
360
363
  ]
361
364
  r << []
@@ -397,4 +400,4 @@ class Martile
397
400
  end
398
401
 
399
402
  end
400
- end
403
+ 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.5.15
4
+ version: 0.5.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file