lib/hemingway/math/math_nodes.rb in hemingway-0.0.2 vs lib/hemingway/math/math_nodes.rb in hemingway-0.0.3

- old
+ new

@@ -1,7 +1,20 @@ module Hemingway module MathNode def html - symbol.html + content.html end end + + module ExponentNode + def html + # Pretty bad hack, but I figure it ain't a big deal until I want to + # support more rebust syntax. + if value.text_value == "\\circ" + "°" + else + Build.tag("sup", value.html) + end + end + end + end