Class: Kramdown::Converter::Prismic

Inherits:
Base
  • Object
show all
Defined in:
lib/kramdown/converter/prismic.rb

Instance Method Summary collapse

Instance Method Details

#convert(root) ⇒ Object



8
9
10
11
12
# File 'lib/kramdown/converter/prismic.rb', line 8

def convert(root)
  cleanup_ast(root).map do |child|
    convert_element(child)
  end.compact.flatten
end