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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +59 -2
- metadata +1 -1
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 402735615ad7485a6e90fab46f9f78cd36c9f94e
|
4
|
+
data.tar.gz: 3b6626eb35bfee18b831e39f6cc2aafcdd709bff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8fac1f87baf1b0abf9f4e76ed91fe8b983a901a6e87ca37f505f993e761d084562de460b8a058459f3ada4549945a439e1eb7db3b9df83ee26d84957f5ac824
|
7
|
+
data.tar.gz: 780cdc2528c31d86a6824f4d66df21d20f12b06d15752898aaf0a076e41b9423f8eb85f468e0ccd5c83259c035031fc288bc27161089d90ad2a8b75d5220a839
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -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 =
|
97
|
+
s10 = apply_filter(s9) {|x| mtlite_utils x }
|
98
|
+
s11 = section s10
|
42
99
|
|
43
|
-
|
100
|
+
|
44
101
|
|
45
102
|
#puts 's8 : ' + s8.inspect
|
46
103
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
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����ukK��
|
2
|
+
И��V��tŵ�܈�#b������JU�
|