usememos / gomark

46 stars 5 forks source link

clickable image not rendered #8

Open azdolinski opened 2 weeks ago

azdolinski commented 2 weeks ago

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

RoccoSmit commented 2 weeks ago

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