docubot 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ module FileUtils
20
20
  end
21
21
 
22
22
  module DocuBot
23
- VERSION = '1.0.1'
23
+ VERSION = '1.0.2'
24
24
  DIR = File.expand_path( File.dirname( __FILE__ ) )
25
25
 
26
26
  TEMPLATE_DIR = DIR / 'docubot/templates'
@@ -2,10 +2,7 @@
2
2
  begin
3
3
  require 'kramdown'
4
4
  DocuBot::Converter.to_convert :md, :markdown do |page, source|
5
- Kramdown::Document.new(source).to_html.tap do |result|
6
- # BlueCloth 2.0.5 takes UTF-8 source and returns ASCII-8BIT
7
- # result.encode!( 'UTF-8', :undef=>:replace ) if Object.const_defined? "Encoding"
8
- end
5
+ Kramdown::Document.new(source,coderay_line_numbers:nil, coderay_css: :class).to_html
9
6
  end
10
7
  rescue LoadError
11
8
  warn "Unable to load kramdown gem; *.markdown/*.md markup will not be recognized as a page."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docubot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: