Method: YARD::Templates::Helpers::HtmlHelper#html_markup_text

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

#html_markup_text(text) ⇒ String

Converts plaintext to regular HTML

Parameters:

  • text (String)

    the input text

Returns:

  • (String)

    the output HTML

Since:

  • 0.6.0


109
110
111
# File 'lib/yard/templates/helpers/html_helper.rb', line 109

def html_markup_text(text)
  h(text).gsub(/\r?\n/, '<br/>')
end