Slide 29
Slide 29 text
+PVGTITCVGYKVJ*6/.2KRGNKPG
module MarkdownHelper
def markdown_to_html(post, **options)
pipeline = HTML::Pipeline.new [
HTML::Pipeline::SanitizationFilter,
HTML::Pipeline::Twitter::EmojiFilter,
HTML::Pipeline::RougeFilter,
], { gfm: true, mentions: post.mentions, post: post, **options }
pipeline.call(post.body)[:output].to_s.html_safe
end
end