Class: Perron::Markdown::CommonMarkerParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/perron/markdown.rb

Instance Attribute Summary

Attributes inherited from Parser

#options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Parser

#initialize

Constructor Details

This class inherits a constructor from Perron::Markdown::Parser

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


82
# File 'lib/perron/markdown.rb', line 82

def self.available? = defined?(::Commonmarker)

Instance Method Details

#parse(text) ⇒ Object



80
# File 'lib/perron/markdown.rb', line 80

def parse(text) = Commonmarker.to_html(text, **options)