dprint / dprint-plugin-markdown

Markdown code formatting plugin for dprint.
MIT License
25 stars 9 forks source link

Underscore as default for *emphasis* #91

Closed mnil closed 9 months ago

mnil commented 10 months ago

Describe the bug

Why is underscores (_) the default for emphasis?

From https://www.markdownguide.org/basic-syntax/#italic:

Markdown applications don’t agree on how to handle underscores in the middle of a word. For compatibility, use asterisks to italicize the middle of a word for emphasis.

Is there any disadvantage to using asterisks for emphasis?

dprint-plugin-markdown version: 0.16.2

dsherret commented 9 months ago

The default is to be the same as Prettier. Both dprint and prettier will keep using asterisks in that case mentioned:

mnil commented 9 months ago

Okay, thanks for the answer!