gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 274 forks source link

Incorrect smart quotes convert #700

Closed sakkamade closed 3 years ago

sakkamade commented 3 years ago

Hello. I'm using jekyll and noticed that the quotes following directly after hyphen - render improperly.

Examples

"word-"  =>  “word-“  |  instead for “word-”
'word-'  =>  ‘word-‘  |  instead for ‘word-’

or just 
"-"  =>  “-“
'-'  =>  ‘-‘ 
gettalong commented 3 years ago

The smart quotes feature is just a very basic implementation which only covers the standard use case of (English) sentences. There are many such corner cases which are not handled well/correctly.