Sha256: 72885a20cc105976cc5f063217112fa43cf343a3258dfa2e598aa4989b4e6bbb
Contents?: true
Size: 328 Bytes
Versions: 5
Compression:
Stored size: 328 Bytes
Contents
require 'github/markdown' require 'magnet/markdown/filter' class Magnet::Markdown::Filter::Markdown < HTML::Pipeline::TextFilter def initialize(text, context = nil, result = nil) super @text = @text.gsub("\r", '') end def call html = GitHub::Markdown.to_html(@text, :gfm) html.rstrip! html end end
Version data entries
5 entries across 5 versions & 1 rubygems