qjebbs / vscode-markdown-extended

Extended syntaxes to built-in markdown & What you see is what you get exporter.
MIT License
125 stars 25 forks source link

italics in preview displayed as underscores #72

Closed gmccullo closed 4 years ago

gmccullo commented 4 years ago

With this extension enabled, _this text would be displayed in the preview underscored. With the extension off, _this text is displayed as italic, which is correct.

Trillinon commented 4 years ago

I believe this is because the extension has added markdown-it-underline as a supported extension. I disagree with this choice, as it isn't an extension of the Markdown syntax but an override. I use the underscore for italics, and now my documents no longer render correctly.

I think the underline extension should be removed, and made into a separate markdown plugin extension. At the very least, as the list of extensions grows, they should be configurable.

qjebbs commented 4 years ago

Please use *italic* for italic

gmccullo commented 4 years ago

Here's the spec:

Markdown treats asterisks (*) and underscores (_) as indicators of emphasis. Text wrapped with one * or _ will be wrapped with an HTML <em> tag; double *’s or _’s will be wrapped with an HTML <strong> tag.

_italic_ is italic. The extension should conform to the specification.