lib/kramdown/parser/kramdown/html_entity.rb in kramdown-0.8.0 vs lib/kramdown/parser/kramdown/html_entity.rb in kramdown-0.9.0

- old
+ new

@@ -27,10 +27,10 @@ class Kramdown # Parse the HTML entity at the current location. def parse_html_entity @src.pos += @src.matched_size - @tree.children << Element.new(:entity, @src[1] || (@src[2] && @src[2].to_i) || @src[3].hex) + @tree.children << Element.new(:entity, ::Kramdown::Utils::Entities.entity(@src[1] || (@src[2] && @src[2].to_i) || @src[3].hex)) end define_parser(:html_entity, Kramdown::Parser::Html::Constants::HTML_ENTITY_RE, '&') end end