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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f4862ef60a703fe5f68077061c8f565ed46db14
4
- data.tar.gz: 957ce7bdb00fe10a977c20db69f6ff24f66c1f9b
3
+ metadata.gz: f2041748986c59e80573413f19a4f0422f3040ef
4
+ data.tar.gz: cded8c3be05aa80c54123b26768265747803c43f
5
5
  SHA512:
6
- metadata.gz: 3937246b2ed64c544e53ca4b380ef3b77c9846a2acf704b84cbc4739eaeb208dfe42b4fbf3d55c6695e2290d237ba419bab5dc9d02b3c0e1a725d8a27e563a89
7
- data.tar.gz: 29377f95bf39cca5e0da254adc719541d1aa4e592cbf44c93e6f7d240179749f9daee0b7130cbb945f863166087606f308150ea23b0105bc74aba5f6803a70e4
6
+ metadata.gz: fd7cb35317175c346a65a79781c5155422ce347cfe91666cb7c2ece6e1d8ee0c94f8d3394eb9e3401f39b3c2335454904f242f77abba51bd411977376aacbdf5
7
+ data.tar.gz: f4d3f76da66f9ec14354589dee35a8c1fbf8171fd61e70f516f4c6a5a5a9c84f4ab7cd7ecba4857bf73d1bec728d0218b4612046a5d409898ee27a144bf7c1bd
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- (AG�ˊ����v���<)��������熰�A7v;H a�D�$)
1
+ ���x��kQ��5ǰ6fr���S���G�ie�� ��ag" $��Pƛ1y^a��IE5��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(/</,'&lt;').gsub(/>/,'&gt;')
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.20
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-04 00:00:00.000000000 Z
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