diff --git a/lib/convert.js b/lib/convert.js index 5d861a2..07c4919 100644 --- a/lib/convert.js +++ b/lib/convert.js @@ -233,8 +233,14 @@ function getBodyXML(chapter, contentEl) { xml = xml.replace(/I-uh/g, "I—uh"); // Use
for separators + // https://www.parahumans.net/2019/12/21/interlude-18-z-radiation/ has "super-separators" ("⊙ ⊙ ⊙ ⊙ ⊙") which we + // leave untouched for now. xml = xml.replace(/

■<\/p>/g, "


"); xml = xml.replace(/

■<\/p>/g, "


"); + xml = xml.replace(/

⊙<\/p>/g, "


"); + xml = xml.replace(/

⊙<\/strong><\/p>/g, "


"); + xml = xml.replace(/

⊙<\/strong><\/em><\/p>/g, "


"); + xml = xml.replace(/

⊙<\/strong>⊙<\/strong><\/p>/g, "


"); // Fix recurring miscapitalization with questions xml = xml.replace(/\?”\s\s?She asked/g, "?” she asked"); diff --git a/lib/substitutions.json b/lib/substitutions.json index da54b70..b45d7cf 100644 --- a/lib/substitutions.json +++ b/lib/substitutions.json @@ -4118,7 +4118,7 @@ ], "https://www.parahumans.net/2017/09/11/daybreak-1-1/": [ { - "before": "

Ward is the second work in the Parahumans series, and reading Worm first is strongly recommended. A lot of this won’t make sense otherwise and if you do find yourself a fan of the universe, the spoilers in Ward will affect the reading of the other work.

\n

Ward is not recommended for young or sensitive readers.

\n

", + "before": "

Ward is the second work in the Parahumans series, and reading Worm first is strongly recommended. A lot of this won’t make sense otherwise and if you do find yourself a fan of the universe, the spoilers in Ward will affect the reading of the other work.

\n

Ward is not recommended for young or sensitive readers.

\n
", "after": "", "_comment": "This is out of place in an eBook." }, @@ -4138,5 +4138,12 @@ "before": "blunt instrument-I saw the", "after": "blunt instrument—I saw the" } + ], + "https://www.parahumans.net/2018/05/26/torch-7-4/": [ + { + "before": "

", + "after": "", + "_comment": "This appears to be intentional, but it just duplicates the Next Chapter link (i.e. turning the page in the eBook), so we remove it" + } ] }