Method: YARD::Templates::Helpers::HtmlHelper#html_markup_textile

Defined in:
lib/yard/templates/helpers/html_helper.rb

#html_markup_textile(text) ⇒ String

Converts Textile to HTML

Parameters:

  • text (String)

    the input Textile text

Returns:

Since:

  • 0.6.0

[View source]

73
74
75
76
77
# File 'lib/yard/templates/helpers/html_helper.rb', line 73

def html_markup_textile(text)
  doc = markup_class(:textile).new(text)
  doc.hard_breaks = false if doc.respond_to?(:hard_breaks=)
  doc.to_html
end