Sha256: 1b2910f981fd440e3e8c83d3245e4b52ef4d599321ce6efcf1363e45e5c3ead4
Contents?: true
Size: 1017 Bytes
Versions: 4
Compression:
Stored size: 1017 Bytes
Contents
# This shouldn't exist but I can't find any other way to prevent redcarpet from complaining # WARN: tilt autoloading 'redcarpet' in a non thread-safe way; explicit require 'redcarpet' suggested. # !! Unexpected error while processing request: Input must be UTF-8 or US-ASCII, ASCII-8BIT given # Input must be UTF-8 or US-ASCII, ASCII-8BIT given # gems/redcarpet-2.0.1/lib/redcarpet.rb:70:in `render' # gems/redcarpet-2.0.1/lib/redcarpet.rb:70:in `to_html' # gems/tilt-1.3.3/lib/tilt/markdown.rb:38:in `evaluate' # gems/tilt-1.3.3/lib/tilt/markdown.rb:61:in `evaluate' # gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render' require 'redcarpet' # Compatibility class; # Creates a instance of Redcarpet with the RedCloth # API. This instance has no extensions enabled whatsoever, # and no accessors to change this. 100% pure, standard # Markdown. class RedcarpetCompat def to_html(*_dummy) @text = @text.force_encoding('utf-8') if @text.respond_to?(:force_encoding) @markdown.render(@text) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gitdocs-0.4.15 | lib/gitdocs/rendering.rb |
gitdocs-0.4.14 | lib/gitdocs/rendering.rb |
gitdocs-0.4.13 | lib/gitdocs/rendering.rb |
gitdocs-0.4.12 | lib/gitdocs/rendering.rb |