Sha256: 6f9ae0f7dce66bbe1003fbda34ac01cb9016f250524717c416147f7ddc7cb82b
Contents?: true
Size: 317 Bytes
Versions: 4
Compression:
Stored size: 317 Bytes
Contents
class MdSimpleEditorController < ApplicationController def preview options = {autolink: true, tables: true, hard_wrap: true, no_intra_emphasis: true, fenced_code:true, gh_blockcode: true} html = Redcarpet::Markdown.new(Redcarpet::Render::HTML, options).render(params['md']).html_safe render text: html end end
Version data entries
4 entries across 4 versions & 1 rubygems