docubot 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/docubot.rb +1 -1
- data/lib/docubot/converters/markdown.rb +1 -4
- metadata +1 -1
data/lib/docubot.rb
CHANGED
@@ -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
|
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."
|