Shoes3 / ebook

An interactive eBook written in Shoes.
2 stars 0 forks source link

Bold highlighting needs work. #12

Closed ccoupe closed 7 years ago

ccoupe commented 7 years ago

Currently it just replaces the bolded text with STRONG. Italics might need some love too.

ccoupe commented 7 years ago
      # TODO: How do I get kd:text out of el? 
      def convert_strong(el)
        results = []
        #puts "el attr: #{el.attr.inspect}" #none
        el.children.each do |inner_el|
          puts "inner el: #{inner_el.inspect}"
          puts "Inner #{inner_el.text}"
        end
        #%[para (strong(t))]
        nil
      end
IanTrudel commented 7 years ago

How about el.value?