martile 0.1.20 → 0.1.21
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 +2 -1
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +11 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2041748986c59e80573413f19a4f0422f3040ef
|
4
|
+
data.tar.gz: cded8c3be05aa80c54123b26768265747803c43f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd7cb35317175c346a65a79781c5155422ce347cfe91666cb7c2ece6e1d8ee0c94f8d3394eb9e3401f39b3c2335454904f242f77abba51bd411977376aacbdf5
|
7
|
+
data.tar.gz: f4d3f76da66f9ec14354589dee35a8c1fbf8171fd61e70f516f4c6a5a5a9c84f4ab7cd7ecba4857bf73d1bec728d0218b4612046a5d409898ee27a144bf7c1bd
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
���x��kQ��5ǰ6�fr���S���G�ie�� ��ag�" $��Pƛ1y^a��IE�5��M��1ڇ}�B�$�����m�ʖG�M������I�IJ_!r��Ϙ@�hi�c�M�=
|
2
|
+
����j�RW?��!*�(}�ԉ��:����
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -8,6 +8,7 @@ require 'dynarex'
|
|
8
8
|
require 'rdiscount'
|
9
9
|
|
10
10
|
|
11
|
+
# feature: 12-Oct-2013: escaped the non-code content of <pre> blocks
|
11
12
|
# feature: 04-Oct-2013: angle brackets within <pre><code> blocks are
|
12
13
|
# escaped automatically
|
13
14
|
# feature: 03-Oct-2013: HTML tags now handled
|
@@ -39,6 +40,16 @@ class Martile
|
|
39
40
|
end
|
40
41
|
}.join
|
41
42
|
|
43
|
+
# escape the content of <pre> tags which doesn't contain the code tag
|
44
|
+
s2.gsub!(/<(pre)>.*<\/\1>/m) do |x|
|
45
|
+
s = x[5..-7]
|
46
|
+
if s[/^<code>/] then
|
47
|
+
x
|
48
|
+
else
|
49
|
+
"<pre>%s</pre>" % s.gsub(/</,'<').gsub(/>/,'>')
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
42
53
|
#puts 's2 : ' + s2.inspect
|
43
54
|
s3 = filter_out_html(s2, :ordered_list_to_html)
|
44
55
|
#puts 's3 : ' + s3.inspect
|
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.
|
4
|
+
version: 0.1.21
|
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-10-
|
32
|
+
date: 2013-10-12 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rexle-builder
|
metadata.gz.sig
CHANGED
Binary file
|