redcarpet 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of redcarpet might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9d3980e6999fcae2984afc937c0b44571733d13
4
- data.tar.gz: 7a9657c07837cd52809554f22454eb6903ff6ddf
3
+ metadata.gz: f3bb6bf8e22d29598761b6bad47dc4b0cdfef044
4
+ data.tar.gz: e257417643efec9e093c4ab179e3c3f881c7dcfe
5
5
  SHA512:
6
- metadata.gz: 9c4ce851036c43d0ac94df6145f2a7ad50a8b9e6aaa75a2822ea3e334e300dc25d458d65a569c1ec6314eb49efb3ec04a3f66c1d8d364d69974fe135b433d0ff
7
- data.tar.gz: 59bac70348e742d074e74a387786c307a1b6e548667ab5ca244fcc26f80840f9eb8c6a1061783474509cefce0b2e2859ce90dd8cf137b77c9bbf38802ca978fb
6
+ metadata.gz: 8a6535b83414094b08882fb74c4e499df79664bd314573e9abd22644fa54fda6f396764f53a69e8785463d109c3db88049e9aee48189c3765838b5b0a0dd62ff
7
+ data.tar.gz: 247af3b4f0f3fcfe2d202eef0379801379aad8d38199e49bdfd0d2e5e6a20182945f08a03f66e3ab9031568459a8f14d18a50ec4f79faf5e49c6bcebe2b79164
@@ -1,5 +1,6 @@
1
1
  /* C code produced by gperf version 3.0.4 */
2
2
  /* Command-line: gperf -N find_block_tag -H hash_block_tag -C -c -E --ignore-case html_block_names.txt */
3
+ /* See http://git.io/RN0ncw for the list of recognized elements */
3
4
  /* Computed positions: -k'1-2' */
4
5
 
5
6
  #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
@@ -99,10 +100,10 @@ hash_block_tag (str, len)
99
100
  68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
100
101
  68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
101
102
  55, 50, 45, 40, 35, 30, 68, 68, 68, 68,
102
- 68, 68, 68, 68, 68, 15, 10, 5, 15, 15,
103
+ 68, 68, 68, 68, 68, 15, 10, 15, 15, 15,
103
104
  0, 20, 10, 10, 5, 68, 68, 0, 20, 25,
104
105
  0, 68, 68, 0, 25, 0, 15, 68, 68, 68,
105
- 68, 68, 68, 68, 68, 68, 68, 15, 10, 5,
106
+ 68, 68, 68, 68, 68, 68, 68, 15, 10, 15,
106
107
  15, 15, 0, 20, 10, 10, 5, 68, 68, 0,
107
108
  20, 25, 0, 68, 68, 0, 25, 0, 15, 68,
108
109
  68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
@@ -147,7 +148,7 @@ find_block_tag (str, len)
147
148
  {
148
149
  enum
149
150
  {
150
- TOTAL_KEYWORDS = 40,
151
+ TOTAL_KEYWORDS = 41,
151
152
  MIN_WORD_LENGTH = 1,
152
153
  MAX_WORD_LENGTH = 10,
153
154
  MIN_HASH_VALUE = 1,
@@ -175,18 +176,19 @@ find_block_tag (str, len)
175
176
  "del",
176
177
  "",
177
178
  "blockquote",
178
- "canvas",
179
+ "script",
179
180
  "article",
180
181
  "div",
181
- "abbr",
182
+ "",
182
183
  "video",
183
184
  "hgroup",
184
185
  "ol",
185
186
  "noscript",
186
- "", "", "",
187
+ "", "",
188
+ "canvas",
187
189
  "dd",
188
190
  "nav",
189
- "",
191
+ "abbr",
190
192
  "audio",
191
193
  "iframe",
192
194
  "address",
@@ -2,7 +2,7 @@ require 'redcarpet.so'
2
2
  require 'redcarpet/compat'
3
3
 
4
4
  module Redcarpet
5
- VERSION = '3.2.1'
5
+ VERSION = '3.2.2'
6
6
 
7
7
  class Markdown
8
8
  attr_reader :renderer
@@ -1,10 +1,10 @@
1
1
  # encoding: utf-8
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'redcarpet'
4
- s.version = '3.2.1'
4
+ s.version = '3.2.2'
5
5
  s.summary = "Markdown that smells nice"
6
6
  s.description = 'A fast, safe and extensible Markdown to (X)HTML parser'
7
- s.date = '2014-11-25'
7
+ s.date = '2014-12-06'
8
8
  s.email = 'vicent@github.com'
9
9
  s.homepage = 'http://github.com/vmg/redcarpet'
10
10
  s.authors = ["Natacha Porté", "Vicent Martí"]
@@ -57,4 +57,13 @@ EOE
57
57
  assert_renders section_expected, section
58
58
  assert_renders header_expected, header
59
59
  end
60
+
61
+ def test_script_tag_recognition
62
+ markdown = <<-Md
63
+ <script type="text/javascript">
64
+ alert('Foo!');
65
+ </script>
66
+ Md
67
+ assert_renders markdown, markdown
68
+ end
60
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redcarpet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natacha Porté
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-25 00:00:00.000000000 Z
12
+ date: 2014-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri