lib/kramdown/converter/latex.rb in kramdown-1.15.0 vs lib/kramdown/converter/latex.rb in kramdown-1.16.0
- old
+ new
@@ -532,10 +532,14 @@
:mdash => '---', :ndash => '--', :hellip => '\ldots{}',
:laquo_space => '\guillemotleft{}~', :raquo_space => '~\guillemotright{}',
:laquo => '\guillemotleft{}', :raquo => '\guillemotright{}'
} # :nodoc:
def convert_typographic_sym(el, opts)
- TYPOGRAPHIC_SYMS[el.value]
+ if (result = @options[:typographic_symbols][el.value])
+ escape(result)
+ else
+ TYPOGRAPHIC_SYMS[el.value]
+ end
end
def convert_smart_quote(el, opts)
res = entity_to_latex(smart_quote_entity(el)).chomp('{}')
res << "{}" if ((nel = opts[:parent].children[opts[:index]+1]) && nel.type == :smart_quote) || res =~ /\w$/