commit e37abf15cdd86b412e32e34c77b27c8b77f8962d
parent d6357cd4c1561750d1ba22a2ef55cb01dbce9e0a
Author: William Casarin <jb55@jb55.com>
Date: Wed, 27 Oct 2021 23:30:10 -0700
strip newlines from paragraphs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
@@ -125,7 +125,7 @@ function process_item(root, lines, item)
let i = 0
if (item.type === 'paragraph' || item.type === 'markdown' || item.type === 'html') {
- const text = item.text.trim()
+ const text = item.text.replace(/\n/g, " ").trim()
const links = parse_links(text, root)
lines.push('')