Sha256: 568309d78408ef6f2679dd52d037577b5407d1caaeefd32dd5d1dc640489d3eb

Contents?: true

Size: 368 Bytes

Versions: 4

Compression:

Stored size: 368 Bytes

Contents

require 'faml/filter_compilers/tilt_base'

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

      def compile(ast)
        temple = [:multi, [:newline]]
        compile_with_tilt(temple, 'markdown', ast)
        temple << [:static, "\n"]
      end
    end

    register(:markdown, Markdown)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
faml-0.3.1 lib/faml/filter_compilers/markdown.rb
faml-0.3.0 lib/faml/filter_compilers/markdown.rb
faml-0.2.16 lib/faml/filter_compilers/markdown.rb
faml-0.2.15 lib/faml/filter_compilers/markdown.rb