Also remove whitespace in ordered list items

This commit is contained in:
Will Boyd
2018-11-27 16:14:59 -05:00
parent de470859c4
commit ebbc5298b8
+1 -1
View File
@@ -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');