kramdown 0.13.3 → 0.13.4

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

Potentially problematic release.


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

Files changed (35) hide show
  1. data/CONTRIBUTERS +5 -1
  2. data/ChangeLog +192 -0
  3. data/Rakefile +4 -3
  4. data/VERSION +1 -1
  5. data/bin/kramdown +1 -1
  6. data/doc/index.page +1 -1
  7. data/doc/tests.page +1 -1
  8. data/lib/kramdown/converter.rb +1 -0
  9. data/lib/kramdown/converter/html.rb +3 -3
  10. data/lib/kramdown/converter/toc.rb +82 -0
  11. data/lib/kramdown/document.rb +1 -494
  12. data/lib/kramdown/element.rb +524 -0
  13. data/lib/kramdown/parser/html.rb +11 -11
  14. data/lib/kramdown/parser/kramdown.rb +1 -1
  15. data/lib/kramdown/parser/kramdown/header.rb +1 -1
  16. data/lib/kramdown/parser/kramdown/html.rb +11 -11
  17. data/lib/kramdown/parser/kramdown/smart_quotes.rb +1 -1
  18. data/lib/kramdown/version.rb +1 -1
  19. data/setup.rb +1 -1
  20. data/test/test_files.rb +3 -3
  21. data/test/testcases/block/09_html/parse_as_raw.html +3 -0
  22. data/test/testcases/block/09_html/parse_as_raw.htmlinput +34 -0
  23. data/test/testcases/block/09_html/parse_as_raw.text +3 -1
  24. data/test/testcases/block/09_html/parse_as_span.htmlinput +12 -0
  25. data/test/testcases/block/09_html/parse_as_span.text +1 -1
  26. data/test/testcases/block/09_html/parse_block_html.text +2 -2
  27. data/test/testcases/block/12_extension/options.html +1 -1
  28. data/test/testcases/block/12_extension/options2.html +1 -1
  29. data/test/testcases/block/12_extension/options3.html +2 -2
  30. data/test/testcases/block/14_table/table_with_footnote.html +1 -1
  31. data/test/testcases/span/04_footnote/footnote_nr.html +2 -2
  32. data/test/testcases/span/04_footnote/markers.html +5 -5
  33. data/test/testcases/span/05_html/normal.html +4 -2
  34. data/test/testcases/span/05_html/normal.text +6 -4
  35. metadata +40 -40
@@ -51,7 +51,7 @@ module Kramdown
51
51
  HTML_CONTENT_MODEL_SPAN = %w{a abbr acronym b bdo big button cite caption del dfn dt em
52
52
  h1 h2 h3 h4 h5 h6 i ins kbd label legend optgroup p q rb rbc
53
53
  rp rt rtc ruby samp select small span strong sub sup summary th tt var}
54
- HTML_CONTENT_MODEL_RAW = %w{script math option textarea pre code}
54
+ HTML_CONTENT_MODEL_RAW = %w{script style math option textarea pre code}
55
55
  # The following elements are also parsed as raw since they need child elements that cannot
56
56
  # be expressed using kramdown syntax: colgroup table tbody thead tfoot tr ul ol
57
57
 
@@ -86,7 +86,7 @@ module Kramdown
86
86
  # (first parameter is the created element, the second parameter is +true+ if the HTML
87
87
  # element is already closed, ie. contains no body).
88
88
  def handle_html_start_tag # :yields: el, closed
89
- name = @src[1]
89
+ name = @src[1].downcase
90
90
  closed = !@src[4].nil?
91
91
  attrs = Utils::OrderedHash.new
92
92
  @src[2].scan(HTML_ATTRIBUTE_RE).each {|attr,sep,val| attrs[attr] = val}
@@ -98,24 +98,24 @@ module Kramdown
98
98
  warning("The HTML tag '#{el.value}' cannot have any content - auto-closing it")
99
99
  closed = true
100
100
  end
101
- if name == 'script'
102
- handle_html_script_tag
101
+ if name == 'script' || name == 'style'
102
+ handle_raw_html_tag(name)
103
103
  yield(el, true)
104
104
  else
105
105
  yield(el, closed)
106
106
  end
107
107
  end
108
108
 
109
- # Handle the HTML script tag at the current position.
110
- def handle_html_script_tag
109
+ # Handle the raw HTML tag at the current position.
110
+ def handle_raw_html_tag(name)
111
111
  curpos = @src.pos
112
- if result = @src.scan_until(/(?=<\/script\s*>)/m)
112
+ if @src.scan_until(/(?=<\/#{name}\s*>)/mi)
113
113
  add_text(extract_string(curpos...@src.pos, @src), @tree.children.last, :raw)
114
114
  @src.scan(HTML_TAG_CLOSE_RE)
115
115
  else
116
116
  add_text(@src.rest, @tree.children.last, :raw)
117
117
  @src.terminate
118
- warning("Found no end tag for 'script' - auto-closing it")
118
+ warning("Found no end tag for '#{name}' - auto-closing it")
119
119
  end
120
120
  end
121
121
 
@@ -145,10 +145,10 @@ module Kramdown
145
145
  elsif @src.scan(HTML_TAG_RE)
146
146
  handle_html_start_tag(&block)
147
147
  elsif @src.scan(HTML_TAG_CLOSE_RE)
148
- if @tree.value == @src[1]
148
+ if @tree.value == @src[1].downcase
149
149
  done = true
150
150
  else
151
- warning("Found invalidly used HTML closing tag for '#{@src[1]}' - ignoring it")
151
+ warning("Found invalidly used HTML closing tag for '#{@src[1].downcase}' - ignoring it")
152
152
  end
153
153
  else
154
154
  add_text(@src.getch, @tree, :text)
@@ -322,7 +322,7 @@ module Kramdown
322
322
 
323
323
  def remove_whitespace_children(el)
324
324
  i = -1
325
- el.children.delete_if do |c|
325
+ el.children = el.children.reject do |c|
326
326
  i += 1
327
327
  c.type == :text && c.value.strip.empty? &&
328
328
  (i == 0 || i == el.children.length - 1 || (Element.category(el.children[i-1]) == :block &&
@@ -205,7 +205,7 @@ module Kramdown
205
205
  while !@src.eos? && !stop_re_found
206
206
  if result = @src.scan_until(used_re)
207
207
  add_text(result)
208
- if stop_re && (stop_re_matched = @src.check(stop_re))
208
+ if stop_re && @src.check(stop_re)
209
209
  stop_re_found = (block_given? ? yield : true)
210
210
  end
211
211
  processed = parsers.any? do |name|
@@ -52,7 +52,7 @@ module Kramdown
52
52
  def parse_atx_header
53
53
  return false if !after_block_boundary?
54
54
 
55
- result = @src.scan(ATX_HEADER_MATCH)
55
+ @src.scan(ATX_HEADER_MATCH)
56
56
  level, text, id = @src[1], @src[2], @src[3]
57
57
  text.strip!
58
58
  el = new_block_el(:header, nil, nil, :level => level.length, :raw_text => text)
@@ -57,7 +57,7 @@ module Kramdown
57
57
  end
58
58
  elsif content_model == :span
59
59
  curpos = @src.pos
60
- if result = @src.scan_until(/(?=<\/#{el.value}\s*>)/m)
60
+ if @src.scan_until(/(?=<\/#{el.value}\s*>)/mi)
61
61
  add_text(extract_string(curpos...@src.pos, @src), el)
62
62
  @src.scan(HTML_TAG_CLOSE_RE)
63
63
  else
@@ -86,13 +86,13 @@ module Kramdown
86
86
  @src.scan(TRAILING_WHITESPACE)
87
87
  true
88
88
  else
89
- if result = @src.check(/^#{OPT_SPACE}#{HTML_TAG_RE}/) && !HTML_SPAN_ELEMENTS.include?(@src[1])
89
+ if result = @src.check(/^#{OPT_SPACE}#{HTML_TAG_RE}/) && !HTML_SPAN_ELEMENTS.include?(@src[1].downcase)
90
90
  @src.pos += @src.matched_size
91
91
  handle_html_start_tag(&method(:handle_kramdown_html_tag))
92
92
  Kramdown::Parser::Html::ElementConverter.convert(@root, @tree.children.last) if @options[:html_to_native]
93
93
  true
94
- elsif result = @src.check(/^#{OPT_SPACE}#{HTML_TAG_CLOSE_RE}/) && !HTML_SPAN_ELEMENTS.include?(@src[1])
95
- name = @src[1]
94
+ elsif result = @src.check(/^#{OPT_SPACE}#{HTML_TAG_CLOSE_RE}/) && !HTML_SPAN_ELEMENTS.include?(@src[1].downcase)
95
+ name = @src[1].downcase
96
96
 
97
97
  if @tree.type == :html_element && @tree.value == name
98
98
  @src.pos += @src.matched_size
@@ -120,32 +120,32 @@ module Kramdown
120
120
  warning("Found invalidly used HTML closing tag for '#{@src[1]}'")
121
121
  add_text(result)
122
122
  elsif result = @src.scan(HTML_TAG_RE)
123
- if HTML_BLOCK_ELEMENTS.include?(@src[1])
124
- warning("Found block HTML tag '#{@src[1]}' in span-level text")
123
+ tag_name = @src[1].downcase
124
+ if HTML_BLOCK_ELEMENTS.include?(tag_name)
125
+ warning("Found block HTML tag '#{tag_name}' in span-level text")
125
126
  add_text(result)
126
127
  return
127
128
  end
128
129
 
129
- reset_pos = @src.pos
130
130
  attrs = Utils::OrderedHash.new
131
131
  @src[2].scan(HTML_ATTRIBUTE_RE).each {|name,sep,val| attrs[name] = val.gsub(/\n+/, ' ')}
132
132
 
133
- do_parsing = (HTML_CONTENT_MODEL[@src[1]] == :raw || @tree.options[:content_model] == :raw ? false : @options[:parse_span_html])
133
+ do_parsing = (HTML_CONTENT_MODEL[tag_name] == :raw || @tree.options[:content_model] == :raw ? false : @options[:parse_span_html])
134
134
  if val = HTML_MARKDOWN_ATTR_MAP[attrs.delete('markdown')]
135
135
  if val == :block
136
136
  warning("Cannot use block-level parsing in span-level HTML tag - using default mode")
137
137
  elsif val == :span
138
138
  do_parsing = true
139
139
  elsif val == :default
140
- do_parsing = HTML_CONTENT_MODEL[@src[1]] != :raw
140
+ do_parsing = HTML_CONTENT_MODEL[tag_name] != :raw
141
141
  elsif val == :raw
142
142
  do_parsing = false
143
143
  end
144
144
  end
145
145
 
146
- el = Element.new(:html_element, @src[1], attrs, :category => :span, :content_model => (do_parsing ? :span : :raw))
146
+ el = Element.new(:html_element, tag_name, attrs, :category => :span, :content_model => (do_parsing ? :span : :raw))
147
147
  @tree.children << el
148
- stop_re = /<\/#{Regexp.escape(@src[1])}\s*>/
148
+ stop_re = /<\/#{Regexp.escape(tag_name)}\s*>/i
149
149
  if !@src[4] && HTML_ELEMENTS_WITHOUT_BODY.include?(el.value)
150
150
  warning("The HTML tag '#{el.value}' cannot have any content - auto-closing it")
151
151
  elsif !@src[4]
@@ -197,7 +197,7 @@ module Kramdown
197
197
 
198
198
  # Parse the smart quotes at current location.
199
199
  def parse_smart_quotes
200
- regexp, substs = SQ_RULES.find {|reg, subst| @src.scan(reg)}
200
+ substs = SQ_RULES.find {|reg, subst| @src.scan(reg)}[1]
201
201
  substs.each do |subst|
202
202
  if subst.kind_of?(Integer)
203
203
  add_text(@src[subst])
@@ -23,6 +23,6 @@
23
23
  module Kramdown
24
24
 
25
25
  # The kramdown version.
26
- VERSION = '0.13.3'
26
+ VERSION = '0.13.4'
27
27
 
28
28
  end
data/setup.rb CHANGED
@@ -785,7 +785,7 @@ class ToplevelInstaller
785
785
  else
786
786
  require 'rbconfig'
787
787
  end
788
- ::Config::CONFIG
788
+ ::RbConfig::CONFIG
789
789
  end
790
790
 
791
791
  def initialize(ardir_root, config)
@@ -56,11 +56,12 @@ class TestFiles < Test::Unit::TestCase
56
56
  'test/testcases/block/09_html/simple.html', # bc of xml elements
57
57
  'test/testcases/span/03_codespan/highlighting.html', # bc of span elements inside code element
58
58
  ]
59
- Dir[File.dirname(__FILE__) + '/testcases/**/*.html'].each do |html_file|
59
+ Dir[File.dirname(__FILE__) + '/testcases/**/*.{html, htmlinput}'].each do |html_file|
60
60
  next if EXCLUDE_HTML_FILES.any? {|f| html_file =~ /#{f}$/}
61
+ out_file = (html_file =~ /\.htmlinput$/ ? html_file.sub(/input$/, '') : html_file)
61
62
  define_method('test_' + html_file.tr('.', '_') + "_to_html") do
62
63
  doc = Kramdown::Document.new(File.read(html_file), :input => 'html', :auto_ids => false, :footnote_nr => 1)
63
- assert_equal(tidy_output(File.read(html_file)), tidy_output(doc.to_html))
64
+ assert_equal(tidy_output(File.read(out_file)), tidy_output(doc.to_html))
64
65
  end
65
66
  end
66
67
  end
@@ -163,7 +164,6 @@ class TestFiles < Test::Unit::TestCase
163
164
 
164
165
  # Generate test methods for asserting that converters don't modify the document tree.
165
166
  Dir[File.dirname(__FILE__) + '/testcases/**/*.text'].each do |text_file|
166
- basename = text_file.sub(/\.text$/, '')
167
167
  opts_file = text_file.sub(/\.text$/, '.options')
168
168
  options = File.exist?(opts_file) ? YAML::load(File.read(opts_file)) : {:auto_ids => false, :footnote_nr => 1}
169
169
  (Kramdown::Converter.constants.map {|c| c.to_sym} - [:Base]).each do |conv_class|
@@ -30,3 +30,6 @@ about it
30
30
  </script>
31
31
 
32
32
  <p><a href="http://example.com">http://example.com</a></p>
33
+
34
+ <style> body > * { background-color: Red; } </style>
35
+
@@ -0,0 +1,34 @@
1
+ <p>baz { |qux| quux }</p>
2
+
3
+ <p>This is some para.
4
+ <script type="javascript">
5
+ This *text* must not be converted.
6
+ </SCRIPT></p>
7
+
8
+ <script>Not *parsed* here</script>
9
+
10
+ <sCRIpt>*not*</script>
11
+ <p><em>parsed</em>
12
+ This too
13
+ </p>
14
+
15
+ <script>*not*<p>*parsed*
16
+ This too
17
+ </p></script>
18
+
19
+ <sCRIpt>something<p>*not*</p></scrIPt>
20
+
21
+ <script></script>
22
+
23
+ <script>
24
+ This should be output
25
+ <p> *as* is
26
+ </p> and nothing should be done
27
+ about it
28
+ </not>
29
+ </p>
30
+ </script>
31
+
32
+ <p><a href="http://example.com">http://example.com</a></p>
33
+
34
+ <style> body > * { background-color: Red; } </style>
@@ -3,7 +3,7 @@
3
3
  This is some para.
4
4
  <script type="javascript">
5
5
  This *text* must not be converted.
6
- </script>
6
+ </SCRIPT>
7
7
 
8
8
  <script>Not *parsed* here</script>
9
9
 
@@ -29,3 +29,5 @@ about it
29
29
  </script>
30
30
 
31
31
  <http://example.com>
32
+
33
+ <style> body > * { background-color: Red; } </style>
@@ -0,0 +1,12 @@
1
+ <P>This <EM>text
2
+ should</em> be parsed
3
+ as span
4
+ </p>
5
+
6
+ <p>This produces `</p>
7
+ <p>` an unwanted result.&lt;/p&gt;</p>
8
+
9
+ <p>This <em>text</EM> too</P>
10
+ <p>
11
+ some text
12
+ </p>
@@ -1,7 +1,7 @@
1
1
  <p>This *text
2
2
  should* be parsed
3
3
  as span
4
- </p>
4
+ </P>
5
5
 
6
6
  <p>This produces `</p>` an unwanted result.</p>
7
7
 
@@ -1,6 +1,6 @@
1
- <div>
1
+ <DIV>
2
2
  test
3
- </div>
3
+ </diV>
4
4
 
5
5
  <div>
6
6
  test
@@ -15,7 +15,7 @@ some <span>*para*</span>
15
15
  <div class="footnotes">
16
16
  <ol start="10">
17
17
  <li id="fn:ab">
18
- <p>Some text.<a href="#fnref:ab" rev="footnote">&#8617;</a></p>
18
+ <p>Some text.<a href="#fnref:ab" rel="reference">&#8617;</a></p>
19
19
  </li>
20
20
  </ol>
21
21
  </div>
@@ -4,7 +4,7 @@
4
4
  <div class="footnotes">
5
5
  <ol>
6
6
  <li id="fn:ab">
7
- <p>Some text.<a href="#fnref:ab" rev="footnote">&#8617;</a></p>
7
+ <p>Some text.<a href="#fnref:ab" rel="reference">&#8617;</a></p>
8
8
  </li>
9
9
  </ol>
10
10
  </div>
@@ -1,7 +1,7 @@
1
- <div><span class="CodeRay">x = <span class="co">Class</span>.new
1
+ <div><span class="CodeRay">x = <span class="constant">Class</span>.new
2
2
  </span>
3
3
  </div>
4
4
 
5
- <div><span class="CodeRay">x = <span class="co">Class</span>.new
5
+ <div><span class="CodeRay">x = <span class="constant">Class</span>.new
6
6
  </span>
7
7
  </div>
@@ -19,7 +19,7 @@
19
19
  <blockquote>
20
20
  <p>special here</p>
21
21
  </blockquote>
22
- <p><a href="#fnref:1" rev="footnote">&#8617;</a></p>
22
+ <p><a href="#fnref:1" rel="reference">&#8617;</a></p>
23
23
  </li>
24
24
  </ol>
25
25
  </div>
@@ -3,10 +3,10 @@
3
3
  <div class="footnotes">
4
4
  <ol start="35">
5
5
  <li id="fn:ab">
6
- <p>Some text.<a href="#fnref:ab" rev="footnote">&#8617;</a></p>
6
+ <p>Some text.<a href="#fnref:ab" rel="reference">&#8617;</a></p>
7
7
  </li>
8
8
  <li id="fn:bc">
9
- <p>Some other text.<a href="#fnref:bc" rev="footnote">&#8617;</a></p>
9
+ <p>Some other text.<a href="#fnref:bc" rel="reference">&#8617;</a></p>
10
10
  </li>
11
11
  </ol>
12
12
  </div>
@@ -17,7 +17,7 @@
17
17
  <div class="footnotes">
18
18
  <ol>
19
19
  <li id="fn:fn">
20
- <p>Some foot note text<a href="#fnref:fn" rev="footnote">&#8617;</a></p>
20
+ <p>Some foot note text<a href="#fnref:fn" rel="reference">&#8617;</a></p>
21
21
  </li>
22
22
  <li id="fn:3">
23
23
  <p>other text
@@ -26,21 +26,21 @@ with more lines</p>
26
26
  <blockquote>
27
27
  <p>and a quote</p>
28
28
  </blockquote>
29
- <p><a href="#fnref:3" rev="footnote">&#8617;</a></p>
29
+ <p><a href="#fnref:3" rel="reference">&#8617;</a></p>
30
30
  </li>
31
31
  <li id="fn:1">
32
- <p>some <em>text</em><a href="#fnref:1" rev="footnote">&#8617;</a></p>
32
+ <p>some <em>text</em><a href="#fnref:1" rel="reference">&#8617;</a></p>
33
33
  </li>
34
34
  <li id="fn:now">
35
35
 
36
36
  <pre><code>code block
37
37
  continued here
38
38
  </code></pre>
39
- <p><a href="#fnref:now" rev="footnote">&#8617;</a></p>
39
+ <p><a href="#fnref:now" rel="reference">&#8617;</a></p>
40
40
  </li>
41
41
  <li id="fn:empty">
42
42
 
43
- <p><a href="#fnref:empty" rev="footnote">&#8617;</a></p>
43
+ <p><a href="#fnref:empty" rel="reference">&#8617;</a></p>
44
44
  </li>
45
45
  </ol>
46
46
  </div>
@@ -15,13 +15,15 @@ now </span>.</p>
15
15
  <p>This is <span>tag
16
16
  </span> now.</p>
17
17
 
18
- <p>This is <em>something<span test="do_it" /> strange</em>.</p>
18
+ <p>This is an empty <span></span> tag.</p>
19
+
20
+ <p>This is <em>something<span test="do_it"></span> strange</em>.</p>
19
21
 
20
22
  <p>Auto-closing: <br /></p>
21
23
 
22
24
  <p>Expanding: <textarea></textarea></p>
23
25
 
24
- <p>An invalid tag: &lt;hr&gt;</p>
26
+ <p>An invalid tag: &lt;hR&gt;</p>
25
27
 
26
28
  <p>A &lt;p&gt;block tag&lt;/p&gt;.</p>
27
29
 
@@ -1,4 +1,4 @@
1
- Empty <a name="anchor" id="anchor"></a>!
1
+ Empty <a name="anchor" id="anchor"></A>!
2
2
 
3
3
  <a href="test">title</a> is a title.
4
4
 
@@ -12,8 +12,10 @@ This is <!-- a
12
12
  This is <span>tag
13
13
  now </span>.
14
14
 
15
- This is <span>tag
16
- </span> now.
15
+ This is <sPAn>tag
16
+ </SPAN> now.
17
+
18
+ This is an empty <span></span> tag.
17
19
 
18
20
  This is _something<span test="do_it" /> strange_.
19
21
 
@@ -21,7 +23,7 @@ Auto-closing: <br>
21
23
 
22
24
  Expanding: <textarea></textarea>
23
25
 
24
- An invalid tag: <hr>
26
+ An invalid tag: <hR>
25
27
 
26
28
  A <p>block tag</p>.
27
29
 
metadata CHANGED
@@ -1,35 +1,39 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: kramdown
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 13
8
- - 3
9
- version: 0.13.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.13.4
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Thomas Leitner
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
12
+ date: 2011-12-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: coderay
16
+ requirement: &13137080 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *13137080
25
+ description: ! 'kramdown is yet-another-markdown-parser but fast, pure Ruby,
16
26
 
17
- date: 2011-05-06 00:00:00 +02:00
18
- default_executable: kramdown
19
- dependencies: []
20
-
21
- description: |
22
- kramdown is yet-another-markdown-parser but fast, pure Ruby,
23
27
  using a strict syntax definition and supporting several common extensions.
24
28
 
29
+ '
25
30
  email: t_leitner@gmx.at
26
- executables:
31
+ executables:
27
32
  - kramdown
28
33
  extensions: []
29
-
30
- extra_rdoc_files:
34
+ extra_rdoc_files:
31
35
  - README
32
- files:
36
+ files:
33
37
  - Rakefile
34
38
  - setup.rb
35
39
  - COPYING
@@ -82,10 +86,12 @@ files:
82
86
  - lib/kramdown/utils/ordered_hash.rb
83
87
  - lib/kramdown/version.rb
84
88
  - lib/kramdown/error.rb
89
+ - lib/kramdown/element.rb
85
90
  - lib/kramdown/converter/base.rb
86
91
  - lib/kramdown/converter/latex.rb
87
92
  - lib/kramdown/converter/html.rb
88
93
  - lib/kramdown/converter/kramdown.rb
94
+ - lib/kramdown/converter/toc.rb
89
95
  - lib/kramdown/converter.rb
90
96
  - lib/kramdown/parser.rb
91
97
  - lib/kramdown/compatibility.rb
@@ -293,6 +299,7 @@ files:
293
299
  - test/testcases/block/09_html/processing_instruction.text
294
300
  - test/testcases/block/09_html/simple.options
295
301
  - test/testcases/block/09_html/processing_instruction.html
302
+ - test/testcases/block/09_html/parse_as_span.htmlinput
296
303
  - test/testcases/block/09_html/comment.html
297
304
  - test/testcases/block/09_html/parse_as_raw.options
298
305
  - test/testcases/block/09_html/parse_as_raw.html
@@ -307,6 +314,7 @@ files:
307
314
  - test/testcases/block/09_html/content_model/tables.text
308
315
  - test/testcases/block/09_html/content_model/deflists.options
309
316
  - test/testcases/block/09_html/content_model/deflists.text
317
+ - test/testcases/block/09_html/parse_as_raw.htmlinput
310
318
  - test/testcases/block/09_html/not_parsed.text
311
319
  - test/testcases/block/09_html/simple.html.19
312
320
  - test/testcases/block/08_list/special_cases.html
@@ -436,38 +444,30 @@ files:
436
444
  - test/testcases/block/06_codeblock/normal.text
437
445
  - test/testcases/encoding.html
438
446
  - test/test_files.rb
439
- has_rdoc: true
440
447
  homepage: http://kramdown.rubyforge.org
441
448
  licenses: []
442
-
443
449
  post_install_message:
444
- rdoc_options:
450
+ rdoc_options:
445
451
  - --main
446
452
  - README
447
- require_paths:
453
+ require_paths:
448
454
  - lib
449
- required_ruby_version: !ruby/object:Gem::Requirement
455
+ required_ruby_version: !ruby/object:Gem::Requirement
450
456
  none: false
451
- requirements:
452
- - - ">="
453
- - !ruby/object:Gem::Version
454
- segments:
455
- - 0
456
- version: "0"
457
- required_rubygems_version: !ruby/object:Gem::Requirement
457
+ requirements:
458
+ - - ! '>='
459
+ - !ruby/object:Gem::Version
460
+ version: '0'
461
+ required_rubygems_version: !ruby/object:Gem::Requirement
458
462
  none: false
459
- requirements:
460
- - - ">="
461
- - !ruby/object:Gem::Version
462
- segments:
463
- - 0
464
- version: "0"
463
+ requirements:
464
+ - - ! '>='
465
+ - !ruby/object:Gem::Version
466
+ version: '0'
465
467
  requirements: []
466
-
467
468
  rubyforge_project: kramdown
468
- rubygems_version: 1.3.7
469
+ rubygems_version: 1.8.10
469
470
  signing_key:
470
471
  specification_version: 3
471
472
  summary: kramdown is a fast, pure-Ruby Markdown-superset converter.
472
473
  test_files: []
473
-