Class: Perron::Markdown::KramdownParser

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)


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

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

Instance Method Details

#parse(text) ⇒ Object



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

def parse(text) = Kramdown::Document.new(text, options).to_html