diff --git a/js/content/html-doc.js b/js/content/html-doc.js index 32c53a77..5f332e55 100644 --- a/js/content/html-doc.js +++ b/js/content/html-doc.js @@ -168,7 +168,13 @@ var readAloudDoc = new function() { } function addMissingPunctuation(text) { - return text.replace(/(\w)(\s*?\r?\n)/g, "$1.$2"); + text = removeReferences(text); + return text.replace(/(\w)(\s*?\r?\n)/g, "$1. $2"); + } + + // drop references[1] such as those. + function removeReferences(text){ + return text.replace(/\[[0-9]+\]/g, ''); } function findHeadingsFor(block, prevBlock) {