Skip to content

Bug - Error rendering img - dioxus-markdown #34

@zhiyanzhaijie

Description

@zhiyanzhaijie

I am now using dioxus-markdown handle ,md content renderer.

I am trying render markdown from README of rustdesk with followed content:

[<img src="https://f-droid.org/badge/get-it-on.png"
    alt="Get it on F-Droid"
    height="80">](https://f-droid.org/en/packages/com.carriez.flutter_hbb)
[<img src="https://flathub.org/api/badge?svg&locale=en"
    alt="Get it on Flathub"
    height="80">](https://flathub.org/apps/com.rustdesk.RustDesk)

It will render as:

Image

The actual output as html node:

  <p data-dioxus-id="1785" style="" class="">
    <a href="https://f-droid.org/en/packages/com.carriez.flutter_hbb">
      <span data-dioxus-id="1823" style="" class="markdown-error">
        Custom component `img` failed: `not a valid component`<br>
      </span>
    </a>
    <a href="https://flathub.org/apps/com.rustdesk.RustDesk">
      <span data-dioxus-id="1814" style="" class="markdown-error">
        Custom component `img` failed: `not a valid component`<br>
      </span>
    </a>
  </p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions