class MarkdownUI::HTMLFormatter
Public Class Methods
new(text)
click to toggle source
# File lib/markdown-ui/tools/html_formatter.rb, line 3 def initialize(text) @doc = Nokogiri::XML(text, &:noblanks).to_xhtml(indent: 2) end
Public Instance Methods
to_html()
click to toggle source
# File lib/markdown-ui/tools/html_formatter.rb, line 7 def to_html @doc end