Class: Kramdown::Parser::Prismic

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

Instance Method Summary collapse

Instance Method Details

#parseObject



6
7
8
9
10
11
# File 'lib/kramdown/parser/prismic.rb', line 6

def parse
  @root.options[:encoding] = 'UTF-8'
  @root.children = @source.reduce([]) do |memo, block|
    parse_element(block, memo)
  end
end