Sha256: acc2275f68bfd2a87a8636eaef66b62b9b6aa28123e117c01b0a188a40028253
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
require 'liquid' require 'redcarpet' require 'rouge/plugins/redcarpet' module Eyemask module Liquid module Markdown class HTML < Redcarpet::Render::HTML include Rouge::Plugins::Redcarpet include Redcarpet::Render::SmartyPants end MARKDOWN = Redcarpet::Markdown.new(HTML, autolink: true, tables: true, footnotes: false, fenced_code_blocks:true, no_intra_emphasis: true, superscript: true, underline: true, highlight: true) def markdown(input) MARKDOWN.render(input) end end end end Liquid::Template.register_filter(Eyemask::Liquid::Markdown)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eyemask-0.1.0 | lib/eyemask/liquid/markdown.rb |