mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
Also remove whitespace in ordered list items
This commit is contained in:
@@ -239,7 +239,7 @@ function getPostContent(post, turndownService) {
|
|||||||
content = turndownService.turndown(content);
|
content = turndownService.turndown(content);
|
||||||
|
|
||||||
// clean up extra spaces in list items
|
// 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
|
// clean up the "." from the iframe hack above
|
||||||
content = content.replace(/\.(<\/iframe>)/gi, '$1');
|
content = content.replace(/\.(<\/iframe>)/gi, '$1');
|
||||||
|
|||||||
Reference in New Issue
Block a user