shaunchurch / static-fns

Static functions for building static sites.
1 stars 0 forks source link

Markdown: Parsing and cleansing #12

Open Illizian opened 4 years ago

Illizian commented 4 years ago

A few issues encountered within #11 this issue is to highlight the // TODO comment within packages/blog/src/remove-markdown.js to begin the conversation on refactoring to something like https://github.com/remarkjs/remark

This could provide cleansing via the remarkjs/strip-markdown plugin. It could also provide configurable linting and many other features.

Explore?

shaunchurch commented 4 years ago

Definitely agree with this. Been looking at unified as a whole, and considering that perhaps we could allow the setup to support not just Markdown, but CSV, HTML, XML, YAML, JSON data sources as well.

Illizian commented 4 years ago

Nice. Whilst I wouldn't condone such activities it certainly sounds sensible. Would unified provide all these, could it be made pluggable? Load static-fns and whichever parser you need? (Over engineering or?)

shaunchurch commented 4 years ago

Definitely over engineering. Markdown with the YAML front matter is plenty for now.