mixmark-io / turndown

🛏 An HTML to Markdown converter written in JavaScript
https://mixmark-io.github.io/turndown
MIT License
8.93k stars 880 forks source link

[opinionated] Prefer emitting hyphen `-` over asterisk `*` for unordered list markup #424

Open zm-cttae opened 1 year ago

zm-cttae commented 1 year ago

Currently this package uses *. This works but goes against Markdown conventions of using - which might be because * usually means italics.
In an ideal world the editor would emit - for unordered lists. * is also a little too much like RST and MediaWiki.

wayjake commented 1 year ago

I agree!

These three settings seem to get this package up to date with most modern standards that I run into these days:

{ headingStyle: 'atx', bulletListMarker: '-', emDelimiter: '*' }