Sha256: 7eec7512338cd7ff87d8baae0308ddf9c907aa949892fab59c72b8617068568a

Contents?: true

Size: 355 Bytes

Versions: 11

Compression:

Stored size: 355 Bytes

Contents

require_relative '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

11 entries across 11 versions & 1 rubygems

Version Path
faml-0.6.0 lib/faml/filter_compilers/markdown.rb
faml-0.5.1 lib/faml/filter_compilers/markdown.rb
faml-0.5.0 lib/faml/filter_compilers/markdown.rb
faml-0.4.2 lib/faml/filter_compilers/markdown.rb
faml-0.4.1 lib/faml/filter_compilers/markdown.rb
faml-0.4.0 lib/faml/filter_compilers/markdown.rb
faml-0.3.6 lib/faml/filter_compilers/markdown.rb
faml-0.3.5 lib/faml/filter_compilers/markdown.rb
faml-0.3.4 lib/faml/filter_compilers/markdown.rb
faml-0.3.3 lib/faml/filter_compilers/markdown.rb
faml-0.3.2 lib/faml/filter_compilers/markdown.rb