app/helpers/application_helper.rb
def markdown(text)
    Redcarpet::Markdown.new(
      Redcarpet::Render::HTML,
      autolink: true,
      tables:   true
    ).render(text).html_safe # rubocop:disable Rails/OutputSafety
  end
# Render given text as markdown. Do not use this with unsafe
# inputs as it does not use any blacklisting or sanitization!
Render given text as markdown. Do not use this with unsafe
inputs as it does not use any blacklisting or sanitization!
Render given text as markdown . Do not use this with unsafe inputs as it does not use any blacklisting or sanitization!
def markdown(text)
    Redcarpet::Markdown.new(
      Redcarpet::Render::HTML,
      autolink: true,
      tables:   true
    ).render(text).html_safe 
  end
def markdown ( text ) Redcarpet :: Markdown . new ( Redcarpet :: Render :: HTML , autolink : true , tables : true ) . render ( text ) . html_safe end
Render given text as markdown.
Render given text as markdown .
# rubocop:disable Rails/OutputSafety
text