class Kramdown::Document

The main interface to kramdown.

This class provides a one-stop-shop for using kramdown to convert text into various output formats. Use it like this:

require 'kramdown'
doc = Kramdown::Document.new('This *is* some kramdown text')
puts doc.to_html

The to_html method is a shortcut for using the Converter::Html class. See method_missing for more information.

The second argument to the ::new method is an options hash for customizing the behaviour of the used parser and the converter. See ::new for more information!