Module: TogoStanza::Markdown
- Defined in:
- lib/togostanza/markdown.rb
Defined Under Namespace
Classes: Renderer
Constant Summary collapse
- RENDERER =
Renderer.new( hard_wrap: true, safe_links_only: true, with_toc_data: true )
- INSTANCE =
Redcarpet::Markdown.new(RENDERER, autolink: true, fenced_code_blocks: true, lax_spacing: true, no_intra_emphasis: true, space_after_headers: true, strikethrough: true, superscript: false, tables: true )
Class Method Summary collapse
Class Method Details
.render(source) ⇒ Object
6 7 8 |
# File 'lib/togostanza/markdown.rb', line 6 def render(source) INSTANCE.render(source) end |