Module: Mato

Defined in:
lib/mato/document.rb,
lib/mato.rb,
lib/mato/config.rb,
lib/mato/rescue.rb,
lib/mato/timeout.rb,
lib/mato/version.rb,
lib/mato/converter.rb,
lib/mato/processor.rb,
lib/mato/anchor_builder.rb,
lib/mato/html_filters/task_list.rb,
lib/mato/html_filters/token_link.rb,
lib/mato/renderers/html_renderer.rb,
lib/mato/html_filters/mention_link.rb,
lib/mato/html_filters/sanitization.rb,
lib/mato/html_filters/section_anchor.rb,
lib/mato/renderers/html_toc_renderer.rb,
lib/mato/concerns/html_node_checkable.rb,
lib/mato/html_filters/syntax_highlight.rb,
lib/mato/html_filters/bare_inline_element.rb

Overview

Wraps CommonMark’s HTML blocks with <p/>.

See Also: spec.commonmark.org/0.28/#html-blocks github.com/commonmark/CommonMark/issues/492

Defined Under Namespace

Modules: Concerns, HtmlFilters, Renderers Classes: AnchorBuilder, Config, Converter, Document, Processor, Rescue, Timeout

Constant Summary collapse

VERSION =
"2.5.0"

Class Method Summary collapse

Class Method Details

.define(&block) {|config| ... } ⇒ Mato::Processor

Parameters:

  • block (Proc)

Yield Parameters:

Returns:



24
25
26
27
28
# File 'lib/mato.rb', line 24

def self.define(&block)
  config = Mato::Config.new
  config.configure(&block)
  Mato::Processor.new(config)
end