diff --git a/lib/rules_core/replacements.js b/lib/rules_core/replacements.js index 5630689e..ab86ab35 100644 --- a/lib/rules_core/replacements.js +++ b/lib/rules_core/replacements.js @@ -46,7 +46,7 @@ export default function replace(state) { .replace(/\+-/g, '±') // .., ..., ....... -> … // but ?..... & !..... -> ?.. & !.. - .replace(/\.{2,}/g, '…').replace(/([?!])…/g, '$1..') + .replace(/\.{3,}/g, '…').replace(/([?!])…/g, '$1..') .replace(/([?!]){4,}/g, '$1$1$1').replace(/,{2,}/g, ',') // em-dash .replace(/(^|[^-])---([^-]|$)/mg, '$1\u2014$2') diff --git a/test/fixtures/remarkable/typographer.txt b/test/fixtures/remarkable/typographer.txt index 70d89d23..86bc254b 100644 --- a/test/fixtures/remarkable/typographer.txt +++ b/test/fixtures/remarkable/typographer.txt @@ -49,7 +49,7 @@ ellipsis . test.. test... test..... test?..... test!.... . -

test… test… test… test?.. test!..

+

test.. test… test… test?.. test!..

.