Method: ArticleJSON::Import::GoogleDoc::HTML::TextParser#element

Defined in:
lib/article_json/import/google_doc/html/text_parser.rb

#elementArticleJSON::Elements::Text

Returns:



53
54
55
56
57
58
59
60
# File 'lib/article_json/import/google_doc/html/text_parser.rb', line 53

def element
  ArticleJSON::Elements::Text.new(
    content: content,
    bold: bold?,
    italic: italic?,
    href: href
  )
end