Class: Pseudohelp::Markdown::Compiler
- Inherits:
-
Object
- Object
- Pseudohelp::Markdown::Compiler
- Defined in:
- lib/pseudohelp/markdown.rb
Class Method Summary collapse
Class Method Details
.call(text) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/pseudohelp/markdown.rb', line 11 def call(text) markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, { tables: true, fenced_code_blocks: true, strikethrough: true }) markdown.render(text).html_safe end |