Sha256: 9aeac8ff852b303156a30be0fbcb8ca476a990e10fe2a9695c2b6d09e0eecc18
Contents?: true
Size: 357 Bytes
Versions: 2
Compression:
Stored size: 357 Bytes
Contents
module Hemingway module MathNode def 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hemingway-1.0.0 | lib/hemingway/math/math_nodes.rb |
hemingway-0.0.3 | lib/hemingway/math/math_nodes.rb |