module Trenni::Formatters::Markdown
Public Instance Methods
markdown(text, filter = Trenni::Sanitize::Fragment, **options)
click to toggle source
# File lib/trenni/formatters/markdown.rb, line 31 def markdown(text, filter = Trenni::Sanitize::Fragment, **options) root = Markly.parse(text, **options) html = filter.parse(root.to_html).output return MarkupString.raw(html) end