class Paru::PandocFilter::BulletList

BulletList, contains a list of list of Block nodes.

Public Class Methods

from_array(items) click to toggle source

Create a new BulletList from an array of markdown strings

@param items [String array of markdown strings as items of

the new BulletList

@return [BulletList]

# File lib/paru/filter/bullet_list.rb, line 31
def self.from_array(items)
    ast_items = items.map {|item| [Block.from_markdown(item).to_ast]}
    BulletList.new ast_items
end