Class: Perron::Markdown::CommonMarkerParser
- Inherits:
-
Parser
- Object
- Parser
- Perron::Markdown::CommonMarkerParser
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
Class Method Details
.available? ⇒ 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)
|