Class: Faml::FilterCompilers::Markdown

Inherits:
TiltBase show all
Defined in:
lib/faml/filter_compilers/markdown.rb

Instance Method Summary collapse

Methods inherited from TiltBase

render_with_tilt

Instance Method Details

#compile(ast) ⇒ Object



11
12
13
14
15
# File 'lib/faml/filter_compilers/markdown.rb', line 11

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

#need_newline?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/faml/filter_compilers/markdown.rb', line 7

def need_newline?
  false
end