Method: ArticleJSON::Import::GoogleDoc::HTML::ListParser#content
- Defined in:
- lib/article_json/import/google_doc/html/list_parser.rb
#content ⇒ Array[ArticleJSON::Elements::Paragraph]
Parse the list’s sub nodes to get a set of paragraphs
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/article_json/import/google_doc/html/list_parser.rb', line 24 def content @node .children .select { |node| node.name == 'li' } .map do |node| ParagraphParser .new(node: node, css_analyzer: @css_analyzer) .element end end |