Sha256: 00970dfbff0bfba9ef0cc66e8daf1486968b11cc2295a1b1d4d73898f267c6ea

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 Bytes

Contents

require 'faml/filter_compilers/tilt_base'

module Faml
  module FilterCompilers
    class Markdown < TiltBase
      def need_newline?
        false
      end

      def compile(texts)
        temple = [:multi, [:newline]]
        compile_with_tilt(temple, 'markdown', texts)
      end
    end

    register(:markdown, Markdown)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
faml-0.2.6 lib/faml/filter_compilers/markdown.rb
faml-0.2.5 lib/faml/filter_compilers/markdown.rb
faml-0.2.4 lib/faml/filter_compilers/markdown.rb
faml-0.2.3 lib/faml/filter_compilers/markdown.rb
faml-0.2.2 lib/faml/filter_compilers/markdown.rb
faml-0.2.1 lib/faml/filter_compilers/markdown.rb
faml-0.2.0 lib/faml/filter_compilers/markdown.rb