qjebbs / vscode-markdown-extended

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

Error in admonition with style #131

Open Bekaboo opened 2 years ago

Bekaboo commented 2 years ago

Admonition with style ({style=...} or <font ...></font>) cannot be displayed correctly. This error occurs only in the latest release (1.1.1).

Screenshot from version 1.1.1: 图片

Screenshot from version 1.1.0: 图片

frudolph77 commented 2 years ago

Hey @Bekaboo

I've check what has changed in the code. The problem are the double quotes for the style tag, as quick fix just wrap everything behind the qualifier in double quotes.

!!! bug "Title{style="color:#FF00FF"}"
    Content

Style in Title

This extension is based on https://python-markdown.github.io/extensions/admonition/ and there it is possible to wrap the title in double quotes, also see #123

From my point of view it seems to be impossible to fix this in code. Be aware of that I'm just a user of this extension.

Regards Frank