radiant-kramdown_filter-extension 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,18 +1,3 @@
1
- begin
2
- require 'jeweler'
3
- Jeweler::Tasks.new do |gem|
4
- gem.name = "radiant-kramdown_filter-extension"
5
- gem.summary = %Q{kramdown Filter Extension for Radiant CMS}
6
- gem.description = %Q{kramdown is a fast pure-Ruby Markdown converter.}
7
- gem.email = "git@johnmuhl.com"
8
- gem.homepage = "http://github.com/johnmuhl/radiant-kramdown_filter-extension"
9
- gem.authors = ["johnmuhl"]
10
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
11
- end
12
- rescue LoadError
13
- puts "Jeweler (or a dependency) not available. This is only required if you plan to package kramdown_filter as a gem."
14
- end
15
-
16
1
  # In rails 1.2, plugins aren't available in the path until they're loaded.
17
2
  # Check to see if the rspec plugin is installed first and require
18
3
  # it if it is. If not, use the gem version.
@@ -1,10 +1,10 @@
1
- if File.exist? "#{File.dirname(__FILE__)}/vendor/gems/kramdown-0.9.0"
2
- $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/vendor/gems/kramdown-0.9.0/lib"
1
+ if File.exist? "#{File.dirname(__FILE__)}/vendor/gems/kramdown-0.10.0"
2
+ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/vendor/gems/kramdown-0.10.0/lib"
3
3
  end
4
4
  require 'kramdown'
5
5
 
6
6
  class KramdownFilterExtension < Radiant::Extension
7
- version "1.0.9"
7
+ version "1.0.10"
8
8
  description "kramdown is a fast, pure Ruby Markdown converter."
9
9
  url "http://rubygems.org/gems/radiant-kramdown_filter-extension"
10
10
 
@@ -7,19 +7,21 @@ class KramdownFilter < TextFilter
7
7
  # the type conversion stuff is due to kramdown having strict rules
8
8
  # about the types given as option values but Radiant::Config
9
9
  # stores all values as simple strings.
10
- o = {
11
- :auto_ids => { :default => true, :type => :boolean },
12
- :auto_id_prefix => { :default => '', :type => :string },
13
- :parse_block_html => { :default => false, :type => :boolean },
14
- :parse_span_html => { :default => true, :type => :boolean },
15
- :footnote_nr => { :default => 1, :type => :integer },
16
- :coderay_wrap => { :default => :div, :type => :symbol },
17
- :coderay_line_numbers => { :default => :inline, :type => :symbol },
18
- :coderay_line_number_start => { :default => 1, :type => :integer },
19
- :coderay_tab_width => { :default => 0, :type => :integer },
20
- :coderay_bold_every => { :default => 10, :type => :integer },
21
- :coderay_css => { :default => :style, :type => :symbol },
22
- :numeric_entities => { :default => false, :type => :boolean }
10
+ o = {
11
+ :auto_ids => { :default => true, :type => :boolean },
12
+ :auto_id_prefix => { :default => '', :type => :string },
13
+ :parse_block_html => { :default => false, :type => :boolean },
14
+ :parse_span_html => { :default => true, :type => :boolean },
15
+ :footnote_nr => { :default => 1, :type => :integer },
16
+ :coderay_wrap => { :default => :div, :type => :symbol },
17
+ :coderay_line_numbers => { :default => :inline, :type => :symbol },
18
+ :coderay_line_number_start => { :default => 1, :type => :integer },
19
+ :coderay_tab_width => { :default => 0, :type => :integer },
20
+ :coderay_bold_every => { :default => 10, :type => :integer },
21
+ :coderay_css => { :default => :style, :type => :symbol },
22
+ :numeric_entities => { :default => false, :type => :boolean },
23
+ :entity_ouput => { :default => :as_char, :type => :symbol },
24
+ :toc_depth => { :default => 0, :type => :integer }
23
25
  }
24
26
  # overwrite defaults with user set values
25
27
  o.keys.each { |key|
@@ -56,7 +58,9 @@ class KramdownFilter < TextFilter
56
58
  :coderay_tab_width => o[:coderay_tab_width][:default],
57
59
  :coderay_bold_every => o[:coderay_bold_every][:default],
58
60
  :coderay_css => o[:coderay_css][:default],
59
- :numeric_entities => o[:numeric_entities][:default]
61
+ :numeric_entities => o[:numeric_entities][:default],
62
+ :entity_output => o[:entity_output][:default],
63
+ :toc_depth => o[:toc_depth][:default]
60
64
  }).to_html
61
65
  end
62
66
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-kramdown_filter-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 9
10
- version: 1.0.9
9
+ - 10
10
+ version: 1.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - johnmuhl
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-23 00:00:00 -05:00
18
+ date: 2010-08-08 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - "="
28
28
  - !ruby/object:Gem::Version
29
- hash: 59
29
+ hash: 55
30
30
  segments:
31
31
  - 0
32
- - 9
32
+ - 10
33
33
  - 0
34
- version: 0.9.0
34
+ version: 0.10.0
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: |-