lib/kramdown/parser/kramdown/math.rb in kramdown-0.8.0 vs lib/kramdown/parser/kramdown/math.rb in kramdown-0.9.0
- old
+ new
@@ -42,10 +42,10 @@
INLINE_MATH_START = /\$\$(.*?)\$\$/
# Parse the inline math at the current location.
def parse_inline_math
@src.pos += @src.matched_size
- @tree.children << Element.new(:math, @src[1], :category => :inline)
+ @tree.children << Element.new(:math, @src[1], :category => :span)
end
define_parser(:inline_math, INLINE_MATH_START, '\$')
end
end