Method: YARD::Templates::Helpers::HtmlHelper#html_markup_pre

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

#html_markup_pre(text) ⇒ String

Converts plaintext to pre-formatted HTML

Parameters:

  • text (String)

    the input text

Returns:

  • (String)

    the output HTML

Since:

  • 0.6.0

[View source]

101
102
103
# File 'lib/yard/templates/helpers/html_helper.rb', line 101

def html_markup_pre(text)
  "<pre>" + h(text) + "</pre>"
end