lib/kramdown/parser/kramdown/math.rb in kramdown-0.7.0 vs lib/kramdown/parser/kramdown/math.rb in kramdown-0.8.0
- old
+ new
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
#
#--
-# Copyright (C) 2009 Thomas Leitner <t_leitner@gmx.at>
+# Copyright (C) 2009-2010 Thomas Leitner <t_leitner@gmx.at>
#
# This file is part of kramdown.
#
# kramdown is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -31,21 +31,21 @@
if @src[1]
@src.scan(/^#{OPT_SPACE}\\/)
return false
end
@src.pos += @src.matched_size
- @tree.children << new_block_el(:math, @src[2], :type => :block)
+ @tree.children << new_block_el(:math, @src[2], :category => :block)
true
end
define_parser(:block_math, BLOCK_MATH_START)
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], :type => :inline)
+ @tree.children << Element.new(:math, @src[1], :category => :inline)
end
define_parser(:inline_math, INLINE_MATH_START, '\$')
end
end