a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

make single line breaks multi so markdown can parse

+1
+1
src/htmlMarkdownParsers.ts
··· 23 23 } 24 24 25 25 export function markdownToHtml(markdown: string): string { 26 + markdown = markdown.replace(/\n(?=[^\n])/g, "\n\n"); 26 27 return String( 27 28 unified() 28 29 .use(remarkParse) // Parse markdown content to a syntax tree