summaryrefslogtreecommitdiff
blob: 33df756c7a3c44eac217f6d6b84717263ea5eeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Kramdown
  module Converter
    class Xml < Html
      NOENTITY_MAP = {
        :mdash => '---',
        :ndash => '--',
        :hellip => '...',
        :laquo_space => '<< ',
        :raquo_space => ' >>',
        :laquo => '<',
        :raquo => '>'
      }

      # Overriding to do nothing. We don't want typographic symbols replaced
      def convert_typographic_sym(el, opts)
        NOENTITY_MAP[el.value]
      end
    end
  end
end