You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add support for <img> tags inside rich-text-html-parser for linked documents, which are Caisy assets? This would probably require passing connections with the rich text JSON, and generating the <img> tag with the help of connections like in other libraries:
Motivation is that this library can be used (as I'm using it) to render HTML content for RSS feeds with frameworks that dont support rendering components to HTML like Astro (see here). Of course there are workarounds (for Astro), like using React for such things, but this for me looks like overkill, just to get the HTML for RSS feed.
Currently the library has an extension for document link, which adds a tag of <connection data-document-id="{GUID}"></connection> to the outputted HTML. This currently cannot be altered in a meaningful way from my perspective, apart from modifying the HTML itself - that is creating a DOM/tree from the HTML and modifying it.
One alternative could also be to expose something to overwrite the document link tags like in other provided rich text libraries.
The text was updated successfully, but these errors were encountered:
Hello,
Would it be possible to add support for
<img>
tags insiderich-text-html-parser
for linked documents, which are Caisy assets? This would probably require passing connections with the rich text JSON, and generating the<img>
tag with the help of connections like in other libraries:Motivation is that this library can be used (as I'm using it) to render HTML content for RSS feeds with frameworks that dont support rendering components to HTML like Astro (see here). Of course there are workarounds (for Astro), like using React for such things, but this for me looks like overkill, just to get the HTML for RSS feed.
Currently the library has an extension for document link, which adds a tag of
<connection data-document-id="{GUID}"></connection>
to the outputted HTML. This currently cannot be altered in a meaningful way from my perspective, apart from modifying the HTML itself - that is creating a DOM/tree from the HTML and modifying it.One alternative could also be to expose something to overwrite the document link tags like in other provided rich text libraries.
The text was updated successfully, but these errors were encountered: