#Serializing Lexical generated content to HTML for Astro

1 messages · Page 1 of 1 (latest)

cerulean epoch
#

Hey guys, so I've been trying to implement the Lexical -> HTML parser, specifically for Astro via this repo Turbopress which is just a turbo repo with Astro and Payload.

Background - I've read the following resources:
Serialising-lexical-generated-content-to-html
Lexical => HTML
Lexical Rich Text Parser Example

Issue:
Has anyone found a pattern to serialize the richText json into HTML for Astro? This is the closest parser I've seen for Astro, but it's based on RichTextElement from the slate editor.

Would it be possible to mimic the serialize RichText compoent here or is this based on slate?

Astro

Astro builds fast content sites, powerful web applications, dynamic server APIs, and everything in-between.

GitHub

Astro + Payload CMS Turborepo . Contribute to turbopress/turbopress development by creating an account on GitHub.

Payload CMS

Kudos to the team for such an excellent projectIs there any existing documentation on how to serialise the Lexical RichText

GitHub

Extends payload CMS with Meta's lexical RichText editor - a much more advanced and customizable richtext editor - AlessioGr/payload-plugin-lexical

Payload CMS

Payload is a headless CMS and application framework built with TypeScript, Node.js, React and MongoDB

rapid cosmosBOT