Class: BridgetownNotion::Parsers::ContentParser
- Inherits:
-
Object
- Object
- BridgetownNotion::Parsers::ContentParser
- Defined in:
- lib/bridgetown_notion/parsers/content_parser.rb
Class Method Summary collapse
Class Method Details
.parse(post) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/bridgetown_notion/parsers/content_parser.rb', line 8 def self.parse(post) content = "" blocks = post.fetch("blocks", []) blocks.each do |block| content += get_content(block) end content end |