Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clickable image not rendered #8

Open
azdolinski opened this issue Oct 3, 2024 · 1 comment
Open

clickable image not rendered #8

azdolinski opened this issue Oct 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@azdolinski
Copy link

Describe the bug

When i add clickable image - it is not rendered correctly.
it is rendered as text:

![Logo Wikipedii ]( https://pl.wikipedia.org)

it should show image with hyperlink.

Steps to reproduce

Add to content "clickable image"

Logo Wikipedii

The version of Memos you're using.

v0.22.5

Screenshots or additional context

In Edit Mode:

image

View mode:
image

@azdolinski azdolinski added the bug Something isn't working label Oct 3, 2024
@RoccoSmit
Copy link

RoccoSmit commented Oct 3, 2024

The text parser does not allow for nested syntax, you can do an image or a link, not an image in a link. This is due to the parser starting from the left of the line, registering the link start text then then starting to look for the other syntax parts of the link text, it does not try find any other context syntax in that time.

I was thinking you could use the render custom html instead, but this is not rendering HTML for me at the moment. will need to investigate

@johnnyjoygh johnnyjoygh transferred this issue from usememos/memos Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants