···11- @content.each do |section|
22- - case get_type(section["$type"])
22+ - case get_block_type(section["$type"])
33 - when "paragraph"
44 - @text = section["text"]
55 - if @text.empty?
+2-2
views/paragraph.haml
···1414 but for now we're not even doing that, just 1 piece of formatting.
15151616 Also, it has slight trouble with characters coming right after differently formatted ones.
1717- - type = get_type(formatting.first["$type"])
1717+ - type = get_formatting_type(formatting.first["$type"])
1818 - case type
1919 - when "bold"
2020 %strong>= content
···2424 %u>= content
2525 - when "link"
2626 %a{ href: formatting.first["href"] }>= content
2727- - when "code-inline"
2727+ - when "code"
2828 %code>= content
2929 - else
3030 = content