a tool for shared writing and social publishing
0
fork

Configure Feed

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

tweak a couple remarkStringify defaults in htmlToMarkdown

+9 -3
+9 -3
src/htmlMarkdownParsers.ts
··· 13 13 .use(remarkParse) // Parse markdown content to a syntax tree 14 14 .use(remarkRehype) // Turn markdown syntax tree to HTML syntax tree, ignoring embedded HTML 15 15 .use(rehypeStringify) // Serialize HTML syntax tree 16 - .processSync(markdown), 16 + .processSync(markdown) 17 17 ); 18 18 } 19 19 ··· 22 22 unified() 23 23 .use(rehypeParse) // Parse HTML to a syntax tree 24 24 .use(rehypeRemark) // Turn HTML syntax tree to markdown syntax tree 25 - .use(remarkStringify) // Serialize HTML syntax tree 26 - .processSync(html), 25 + .use( 26 + remarkStringify, // Serialize HTML syntax tree 27 + { 28 + bullet: "-", // change default list marker from '*' 29 + listItemIndent: "tab", // change default indent from two spaces 30 + } 31 + ) 32 + .processSync(html) 27 33 ); 28 34 }