From 08e0d0d9a851263873b2e49b0a12a2a443a4f805 Mon Sep 17 00:00:00 2001
From: Domenic Denicola
Date: Sat, 26 Dec 2020 15:39:39 -0500
Subject: [PATCH] De-italicize some commas
---
lib/convert-worker.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/convert-worker.js b/lib/convert-worker.js
index 390deac..2dbdb32 100644
--- a/lib/convert-worker.js
+++ b/lib/convert-worker.js
@@ -209,6 +209,7 @@ function getBodyXML(chapter, book, contentEl) {
xml = xml.replace(/,”<\/p>/g, ".”
");
xml = xml.replace(/(.*),<\/p>/g, "
$1.
");
xml = xml.replace(/‘(\w+)‘(\w+)’/g, "‘$1’$2’");
+ xml = xml.replace(/([a-z]+), ([a-z]+)<\/em>/g, "$1, $2");
// Similar problems occur in Ward with and as do in Worm with s
xml = xml.replace(//g, "");