Skip to content

Markdown image hyperlink #1091

@amis92

Description

@amis92

Images as hyperlinks

Main topic is support for images in hyperlinks. Currently there is a limitation in HyperlinkButton that no InlineUIContainer can be added as content.

There already are some issues that touched up this issue:

Solution suggestion

It's quite common to have an image linking to something, be it a badge in readme or a miniature with link to full-res version. We could only support at least that scenario (so the only content of hyperlink is an image) or go the extra mile and expand support for mixed content.

The solution would be a kind of a workaround, as when we'd discover a non-text content in Hyperlink we'd fallback to using InlineUIContainer instead of HyperlinkTextBlock, and make any non-text element respond to click as-if-uri-activated, and text would be just parsed into HyperlinkButtons inside.

Metadata

Metadata

Assignees

No one assigned

    Labels

    controls 🎛️help wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions