shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.48k stars 173 forks source link

Emojis are not rendered inside of <summary> tags #311

Open flotwig opened 4 years ago

flotwig commented 4 years ago

With this Markdown source:

* :heavy_check_mark: denotes a mostly-flat Firefox resident set size
* :x: denotes a steadily increasing Firefox resident set size

# Full Dashboard test suite

<details>
<summary>
:heavy_check_mark: Forced GC/CC after every test, parallelization = 5
</summary>
</details>

The following will render inside of MPE:

image

For some reason, :heavy_check_mark: only works outside of the <summary> tag.

Version: 0.5.1 from vscode marketplace

mameen commented 4 years ago

I'm guessing this is by design.. once in HTML tag you have to stick to HTML same thing happens to tables

h1|h2
---|---
v1|v2

<details>
<summary>
h1|h2
---|---
v1|v2

</summary>
</details>

GitLab render

h1 h2
v1 v2
h1|h2 ---|--- v1|v2
flotwig commented 4 years ago

Hmm, strange that it doesn't render tables. If I copy the example from the OP, GitHub does render the emoji in the summary:


Full Dashboard test suite

:heavy_check_mark: Forced GC/CC after every test, parallelization = 5