Class: Perron::Markdown
- Inherits:
-
Object
- Object
- Perron::Markdown
- Defined in:
- lib/perron/markdown.rb
Defined Under Namespace
Classes: CommonMarkerParser, KramdownParser, Parser, RedcarpetParser
Class Method Summary collapse
Class Method Details
.render(text, processors: []) ⇒ Object
8 9 10 11 12 |
# File 'lib/perron/markdown.rb', line 8 def render(text, processors: []) parser.parse(text) .then { Perron::HtmlProcessor.new(it, processors: processors).process } .html_safe end |