martile 0.5.7 → 0.5.8

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: 4d5dcafb1eb5451255287cc3e5b280b697ba3bd4
4
- data.tar.gz: 80eb8369b64d549a42556106869e48b49bc0436a
3
+ metadata.gz: 402735615ad7485a6e90fab46f9f78cd36c9f94e
4
+ data.tar.gz: 3b6626eb35bfee18b831e39f6cc2aafcdd709bff
5
5
  SHA512:
6
- metadata.gz: b5e35f095658e716611f87bd9ad792ee7f4379c548c3f96a8c23e1e7ac2246d9343c43cdb00c6253043eae2e6643c971987349bb738bf3adbae66398a60132ce
7
- data.tar.gz: 3692bf95bb65b2a69527319c573df636838e8dd9ee1c2764562d48f43d443db12f1306f9bd8cef31782d6ce927df3ec2ddc12311d899d3eecdf6b3ec12fe16d3
6
+ metadata.gz: f8fac1f87baf1b0abf9f4e76ed91fe8b983a901a6e87ca37f505f993e761d084562de460b8a058459f3ada4549945a439e1eb7db3b9df83ee26d84957f5ac824
7
+ data.tar.gz: 780cdc2528c31d86a6824f4d66df21d20f12b06d15752898aaf0a076e41b9423f8eb85f468e0ccd5c83259c035031fc288bc27161089d90ad2a8b75d5220a839
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -8,6 +8,62 @@ require 'dynarex'
8
8
  require 'rdiscount'
9
9
 
10
10
 
11
+ # feature: 21-Mar-2015: URLS are now given labels e.g.
12
+ # [news](http://news.bbc.co.uk)<span class='domain'>[bbc.co.uk]</span>
13
+ # bug fix: 20-Mar-2015: HTML and XML elements should not be filtered out of
14
+ # the section() method
15
+ # feature: Added the unicode checkbox feature from the Mtlite gem
16
+ # bug fix: 14-Mar-2015: A section can now be
17
+ # written without an error occurring
18
+ # bug fix: 11-Mar-2015: Escapes angle brackets within a code block *before*
19
+ # the string is passed to Rexle
20
+ # bug fix: A new line character is now added after the creation
21
+ # of the code block tags
22
+ # bug fix: 01-Mar-2015: code_block_to_html() now only searches strings which
23
+ # are outside of angle brackets
24
+ # bug fix: 10-Dec-2014: Generation of pre tags using // can now only happen
25
+ # when the // appears at the beginning of the line
26
+ # feature: 30-Oct-2014: A section can now be between a set of equal signs at
27
+ # the beginning of the line
28
+ # e.g.
29
+ # =
30
+ # inside a section
31
+ # =
32
+ # bug fix: 07-Oct-2014: Smartlink tested for new cases
33
+ # feature: 27-Sep-2014: 1. A smartlink can now be used
34
+ # e.g. ?link http://someurl?
35
+ # 2. pre tags can now be created from 2 pairs of slash
36
+ # tags, before and after the pre tag content e.g.
37
+ # //
38
+ # testing
39
+ # //
40
+ # feature: 24-Sep-2014: A kind of markdown list can now be created inside
41
+ # of <ol> or <ul> tags
42
+ # bug fix: 16-Apr-2014: Words containing an underscore should no longer be
43
+ # transformed to an underline tag
44
+ # bug fix: 03-Apr-2014: XML or HTML elements should now be filtered out
45
+ # of any transformations.
46
+ # feature: 31-Mar-2014: Added an _underline_ feature.
47
+ # bug fix: 01-Mar-2014: A Dynarex_to_table statement between 2 HTML blocks
48
+ # is now handled properly.
49
+ # bug fix: 01-Mar-2014: Multiple pre tags within a string can now be handled
50
+ # feature: 12-Oct-2013: escaped the non-code content of <pre> blocks
51
+ # feature: 04-Oct-2013: angle brackets within <pre><code> blocks are
52
+ # escaped automatically
53
+ # feature: 03-Oct-2013: HTML tags now handled
54
+ # bug fix: 25-Sep-2013: removed the new line statement from the join command.
55
+ # headings etc. should no longer be split with a new line
56
+ # feature: 12-Aug-2013: unordered_list supported
57
+ # feature: 31-Mar-2013: markdown inside a martile ordered list
58
+ # is now converted to HTML
59
+ # bug fix: 02-Nov-2012: within dynarex_to_table URLs containing a
60
+ # dash now work
61
+ # bug fix: 20-Sep-2012: in ordered_list_to_html it now cuts off from
62
+ # parsing headings
63
+ # bug fix: 04-Aug-2012; replaced \s with a space in regex patterns
64
+ # modified: 28-Mar-2012; Added dynarex_to_table
65
+ # modified: 28-Aug-2011; Added escaping of HTML within a code block
66
+
11
67
  class Martile
12
68
 
13
69
  attr_reader :to_html
@@ -38,9 +94,10 @@ class Martile
38
94
  s8 = apply_filter(s7) {|x| underline x }
39
95
  s9 = apply_filter(s8) {|x| smartlink x }
40
96
  #s10 = apply_filter(s9) {|x| section x }
41
- s10 = section s9
97
+ s10 = apply_filter(s9) {|x| mtlite_utils x }
98
+ s11 = section s10
42
99
 
43
- s11 = apply_filter(s10) {|x| mtlite_utils x }
100
+
44
101
 
45
102
  #puts 's8 : ' + s8.inspect
46
103
 
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.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ������L]���"�G��o��M�7�_��0�"�������g��vR�ɹ�L"�/&� ��� ֻ�0i%S$��33�;��cH��L��,=n� %t �R�T�J��X�����z� � ��g�ĉ�!��6��6&�c�� �rq|������.��P��`M�ꅱv�z�po�޸lE�Q��e6�º�(��'����_w��9B^e@�`�"�י�)*��b͵M�\\�W��/����6B
1
+ >��{��z��S"~D|��$�E�򈓿`o�.��7/��6Τ�I J]N�:�����$�9�l�O�G'�'[I�(m��7�N]�H��=�t��w *���u*�����.x%��6v+k��j�n���J}WjK��(�A/6���LP�[6����uk K��
2
+ И��V�� tŵ�܈�#b������JU�