diff --git a/lib/kramed.js b/lib/kramed.js index 30b8126..9fe0758 100644 --- a/lib/kramed.js +++ b/lib/kramed.js @@ -772,7 +772,9 @@ InlineLexer.prototype.smartypants = function(text) { if (!this.options.smartypants) return text; return text // em-dashes - .replace(/--/g, '\u2014') + .replace(/---/g, '\u2014') + // en-dashes + .replace(/--/g, '\u2013') // opening singles .replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018') // closing singles & apostrophes