diff --git a/index.js b/index.js index 47f061a..da4d6c8 100644 --- a/index.js +++ b/index.js @@ -239,7 +239,7 @@ function getPostContent(post, turndownService) { content = turndownService.turndown(content); // clean up extra spaces in list items - content = content.replace(/- +/g, '- '); + content = content.replace(/(-|\d+\.) +/g, '$1 '); // clean up the "." from the iframe hack above content = content.replace(/\.(<\/iframe>)/gi, '$1');