martile 0.1.11 → 0.1.12

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: c0c681e92455bd240d279968daa5abbe9ff60d29
4
- data.tar.gz: 41a7309ab33687e1f4099c96ef5a65e5aaf94a9c
3
+ metadata.gz: f8c4a9a3dc7474660281c6027a1a30abb36e0e37
4
+ data.tar.gz: bffc8003fda24d91cdbe9da6cc5ad3469c6cd36c
5
5
  SHA512:
6
- metadata.gz: acae76a989628c65ef784118fa17b9e9cafe4546ab734398bbaac53106c9ef6d62c5e2a3f81c67064b218806079cae8b888a8417fca83298a842a796b7a238a1
7
- data.tar.gz: 3335a32fe8a5b8cda5abab6c97db7288de8ff861935322afa086a87ec4f2d072e387144fe735c4581589dacaf51c72ef772f8c0fd11025645b1555aa12295bac
6
+ metadata.gz: 354aa236ffca0b43c2527317b47890b409e2df79e984c9ad039809fdec3132bad4eb229fa07294dd2b0ab14b2dee9ea4640870bf752fea670a472729f3f147d6
7
+ data.tar.gz: c6c75b25260775abe12ece2d9b81aec73d784b346b85c65bf271469a64b32cc2240af578ecc54e846d4302ca96ce73e7e7d6be89a58bcd08e8ce479140b7f6b8
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �ߓ߄�h_,A��X 1���;mkA�A ����3�� aظ�9s��i�s)8>�w��{>��N�@!Pd��
2
- _[,���D3Or�<��x�:x{\*�����%�;fꚪX/Vr$J��Pii?ڿ3���8�Ң�Z �\���K{���T�U<=�c&�=�-�N�U�|eK>�&�,dd4���p��ٴ�\���Vx����Cߑ%�lo��f���p�z��/�ʠQs�'6�*�<wg�`� Nq+�Sb
1
+ A��[0T�-.�.}��a{J����&?�UJl���*r��e GFe��.2;bX�� ��2��}|S�&
2
+ lp�Nŏ���M�^e��tk48��t:H�`d�ю��F4�
data/lib/martile.rb CHANGED
@@ -5,7 +5,10 @@
5
5
  require 'rexle-builder'
6
6
  require 'rexle'
7
7
  require 'dynarex'
8
+ require 'rdiscount'
8
9
 
10
+ # feature: 31-Mar-2013: markdown inside a martile ordered list
11
+ # is now converted to HTML
9
12
  # bug fix: 02-Nov-2012: within dynarex_to_table URLs containing a
10
13
  # dash now work
11
14
  # bug fix: 20-Sep-2012: in ordered_list_to_html it now cuts off from
@@ -76,7 +79,8 @@ class Martile
76
79
  if s2 then
77
80
 
78
81
  raw_list = s2[1..-2].split(/^#/).reject(&:empty?).map(&:strip)
79
- list = "<ol>%s</ol>" % raw_list.map {|x| "<li>%s</li>" % x}.join
82
+ list = "<ol>%s</ol>" % raw_list.map {|x| \
83
+ "<li>%s</li>" % RDiscount.new(x).to_html}.join
80
84
  list + remainder.to_s
81
85
 
82
86
  else
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.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  dxxPRWzHhWwDxwQSM9uhSReVj7QoO/gFoKZHmN7+/EhAwKMqI6IK1QwiXHhjaAJG
30
30
  NC9ItVKLmT+Y6rbeYcoXRv6i5t7GjD4m
31
31
  -----END CERTIFICATE-----
32
- date: 2013-02-28 00:00:00.000000000 Z
32
+ date: 2013-03-31 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexle-builder
@@ -59,6 +59,20 @@ dependencies:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rdiscount
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
62
76
  description:
63
77
  email:
64
78
  executables: []
metadata.gz.sig CHANGED
Binary file