From 1da99791d37d28e46dfa3ab80a2002e99269afe0 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 23 Nov 2020 19:30:38 -0500 Subject: [PATCH] Replace hyphen-minus with em dash when preceding a question mark --- lib/convert-worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index ebdd2bb..72a73c2 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -367,6 +367,7 @@ function fixEmDashes(xml) { xml = xml.replace(/\s+—”/g, "—”"); xml = xml.replace(/I-I/g, "I—I"); xml = xml.replace(/I-uh/g, "I—uh"); + xml = xml.replace(/-\?/g, "—?"); return xml; }