Products · Components
RichText
Shows Markdown from your server as formatted text.
It shows headings, bold, lists, links, quotes and pictures. HTML in the Markdown shows as plain text.
Children: Nothing
Example
<RichText markdown="{{ article }}" />export default definePage({
initialState: { article: "## Opening hours\n\nWe are open **Monday to Saturday**, from 8:00 to 18:00." },
});Props
| Prop | Type | What it is |
|---|---|---|
markdown | string |
Events
None.
