Skip to content

Markmap in VSCode fails to render HTML <img> tags in visualization (Windows) #68

@DongLanQwQ

Description

@DongLanQwQ
  • I have searched for existing issues that already reported this problem and found none
  • The bug for the VSCode plugin
  • The bug is also present in the web version of VSCode

Describe the bug
When writing markdown with image references, the standard markdown image syntax ![](url) works correctly sometimes, but the HTML <img> tag syntax doesn't render properly in the markmap visualization, though it works when exported to HTML.

To Reproduce

  1. Create a markdown file with the following content:
  2. "image.png" is a local file.
# Head
- ![](https://an-image)
- <img src="image.png">

View the markmap visualization in VSCode
Observe that only the first image (markdown syntax) appears
Expected behavior
Both image syntax formats should render properly in the markmap visualization:

  • Standard markdown image syntax ![](url)
  • HTML <img> tag syntax
    Actual behavior
  • Only the markdown image syntax works in the visualization, while the HTML <img> tag doesn't render.
    Environment:
    OS: Windows
    Additional Context
    My description may still be lacking, or it may be an accident, please forgive me if it bothers you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions