content-rich-text
Rich text for the web (stage 28, ADR 0440): a post’s body drawn block by block with React elements, never as HTML. Every block type and mark of the platform’s schema has its element here; restyle them with the classes, or pass components to use the app’s own for any of them. Nothing is injected as markup: text is React text (escaped by React), a link’s address is the host’s checked one, a picture is the host’s media route, and a video is played from YouTube’s or Vimeo’s own player address built from the id, never from the raw URL. An embed that is neither is a link.
| Skin | web |
| Pack | content |
| Add it | cos add content-rich-text |
| Files | rich-text.tsx, LICENSE |
| Depends on | ui-button |
| Packages | @composable-os/pack-content |
Operations it calls
Section titled “Operations it calls”Through its hooks; the host decides what each caller may do.
None.