martile 0.6.38 → 0.6.39

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: cd3eeb5b209ea2dbdfc78c4591177a08ef3b2969
4
- data.tar.gz: a66e15bc31e24c297912d830eeefdf08889e8a9d
3
+ metadata.gz: f6e53e8b781def1eaa9feef6c2b0ec33eebb5e6b
4
+ data.tar.gz: 58c885f9a985d76d306cb02b91aa370079ddb80b
5
5
  SHA512:
6
- metadata.gz: 5ed12d55ac62cd35e3e6f240013992005dbc6c51584883840665b9ccf396074d54549d4a6b20bb18e0ead66c701ea703c4a44c4121ebd90eee2309eb60195829
7
- data.tar.gz: d7f6a6430fcb7d32e45feeb187f76b1d4e3d0ea4205a8a3ccbfb2cf61c39a00ee1582737db706878196f66ecdd7c08212f9f219dbb31b23efbfff21d964293bd
6
+ metadata.gz: 8abb5b7e0553ec6fc74d4336f9f3feb2d1f71e993957e6a60b8a74df74bb4c1b54e14de80120820b20ceead5e24201494f9b6923599e9a326fe3e58225c237c3
7
+ data.tar.gz: c130a9be375eb369e8801b96d70229c7ba17d7e1eafd74a1b66948418bb9d9bdfd9d20ca007f658cd21e0d346eab9e05df2b5ee790a195022243f0a9ed615522
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,4 @@
1
- g��#G��ǵK��l'۪�=I�~�5i"m-����(X��������|c�����*�d$�#t|�tpֶ�ݠe�` ���Dr�Zv%�h� �Y��)p��)W@���#ٞ����1c9��e��w>��%�Ҧ[3o(�$U��ha��I-�G�g��K�����R��
2
- ��%�/�ZC*$ c���{t����� ��j����3OB)��M��/f1l���Z\C&�
3
- ȩ��֯3`#�5_�*�nx��
1
+ 04�����ئ�� 9�G��?��K"�U��f���>6K�w8�'��� Ճ�Lf��w�Ԫ:
2
+ Zq�\�k��T4Dt���ۭQ}[��!��臌��D��|gh�>��W
3
+ 4�+3_G��4,0��K�S��""��Ύ��T>�W�yW�-�"Uד��ݡ�M8��]$�.xi6�m�I�!h�0
4
+ %�mA��I�����oPAl1����m�2�j-��� #а[
data.tar.gz.sig CHANGED
Binary file
data/lib/martile.rb CHANGED
@@ -9,6 +9,10 @@ require 'rdiscount'
9
9
  require 'kvx'
10
10
 
11
11
 
12
+ # bug fix: 13-Aug-2017 bug fixes: A markdown table is no longer interpreted
13
+ # as <code> and a string containig a caret is no longer
14
+ # interpreted as <nark> if it contains non
15
+ # alphanumerical characters.
12
16
  # feature: 28-May-2017 Within the context of an embedded Dynarex table,
13
17
  # the nomarkdown extension was wrapped around the inner HTML for each column
14
18
  #
@@ -140,7 +144,7 @@ class Martile
140
144
 
141
145
  s.lines.chunk {|x| x =~ /^\n|^ |\n/ }.map do |_, x|
142
146
 
143
- if x.join.lstrip[/ /] then
147
+ if x.join.lstrip[/^ /] then
144
148
  "\n<pre><code>%s</code></pre>\n" % escape(x.join.gsub(/^ {4}/,''))
145
149
  else
146
150
  x.join
@@ -498,7 +502,7 @@ class Martile
498
502
 
499
503
  def highlight(s)
500
504
 
501
- s.gsub(/\^[^\^]+\^/) {|x| "<mark>%s</mark>" % x[1..-2] }
505
+ s.gsub(/\^\w+\^/) {|x| "<mark>%s</mark>" % x[1..-2] }
502
506
 
503
507
  end
504
508
 
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.6.38
4
+ version: 0.6.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  ta+wi0WcePPmMfSbCGQcYixXdM6qZvflWMz0AK44eQcm6OymMXgMQG6GvHPAl6s2
32
32
  ASPGReskINIIrA==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-05-28 00:00:00.000000000 Z
34
+ date: 2017-08-13 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdiscount
metadata.gz.sig CHANGED
Binary file