Under packages
you find all the public packages for rich text rendering.
This repo uses the starter from turborepo.
repo for all caisy rich-text libraries
License: MIT License
Hello,
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:
{
connections &&
connections.map((component: any) => {
if (component?.__typename === "Asset" && node?.attrs?.documentId === component.id) {
return <Asset {...component} />;
}
return null;
})
}
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.