markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Markdown emoji code may not display well inside fenced code blocks

Open yarakos95 opened this issue 2 years ago • 0 comments

Thank you very much for the very nice extension. 👍

If you write Markdown emoji code inside fenced code blocks with a specified language, the code will not display well.

To reproduce

Consider three cases. :smile: doesn't display well in fenced code blocks with a specified language.

  • If markdown is specified.
    ```markdown
    smile emoji → :smile:
    ```
    
    image
  • If languages other than markdown is specified, e.g. python.
    ```python
    print(":smile:")
    ```
    
    image
  • If no language is specified.
    ```
    :smile:
    ```
    
    image

This issue does not occur when trying to display non-existent Markdown emoji code.

```markdown
:no_emoji:
```

image

Version

  • Markdown Viewer: 5.1
  • Microsoft Edge: 113.0.1774.50

yarakos95 avatar May 25 '23 08:05 yarakos95