Underscore as default for *emphasis*
Closed this issue · 2 comments
mnil commented
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
The default is to be the same as Prettier. Both dprint and prettier will keep using asterisks in that case mentioned:
- https://dprint.dev/playground/#code/KIDwhgtgDgNgpgAgFR3NeK20QfVZbHIA/plugin/markdown
- https://prettier.io/playground/#N4Igxg9gdgLgprEAuEBRAHgQwLYAcA2cABAFRxZ6FkUHED65OtdIANCBLjAJbQDOyUJgBOwiAHcACiIQCUmfOMwBPAewBGwzGADWcGAGUccADLcocZADMFfOBq279B3NvMBzZDGEBXeyDtsbi9ff3JcOGFubAQYBQAVSKgRbjg5G3w7dj4PQgBFHwh4a1t-ACs+dANcuAKiyyQMrJAAR0L4STFcORBMPgBaCzgAExG2EG9MbnwPAGEIbGxMZF78fHGcqHdCAEEYb251Hw7IswsSzP8ACxhsfAB1K+54PlcwOANZZ+4AN2flFZgPhqEA-PwASSgo1gBjAUS4OyhBhgykIF2auDEdnuWlwK0xaUiP0s7HMdmEME6mHcS3R-lcwnJKyWwh0wwkUHGmPMMHu3GGMCuyAAHAAGdjCOBtbiSqk05aNUrsOLqPkCoVIABM7B8dnimHU6SVIDg2HUI1GwxMmC2PmpcAAYhBhEt9h4VphjhAQABfH1AA
mnil commented
Okay, thanks for the answer!