> ## Documentation Index
> Fetch the complete documentation index at: https://prismeai-legacy.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# RichText Block

> Display formatted text with support for Markdown and HTML.

[Demo](https://demo.pages.prisme.ai/en/RichText)

## Minimal usage

```yaml theme={null}
# Page/Block
- slug: RichText
  content: Hello World
```

`content` can be raw text, localized string, markdown or html. But only a few html tags will be allowed without `allowUnsecure` flag.

```yaml theme={null}
# Page/Block
- slug: RichText
  content:
    en: Hello World
    fr: Bonjour monde
```

```yaml theme={null}
# Page/Block
- slug: RichText
  content: |-
    Hello **world**
```

```yaml theme={null}
# Page/Block
- slug: RichText
  content: <div><p>Hello <strong>World</strong></p></div>
```

[Demo](https://demo.pages.prisme.ai/en/RichText#minimal-usage)

## Advanced usage

`allowUnsecure` let all html tag to be displayed.

```yaml theme={null}
# Page/Block
- slug: RichText
  content: |-
    <div class="my-class">
      <iframe src="https://www.prisme.ai" />
    </div>
  allowUnsecure: true
```

`markdown` can be disabled by setting this attribute to false.

```yaml theme={null}
# Page/Block
- slug: RichText
  content: |-
    Hello **world**
  markdown: false
```

will not display "world" in a strong tag.

`tag` is an option to set the nature of the container tag. By default, it's a div tag.

```yaml theme={null}
# Page/Block
- slug: RichText
  content: Hello World
  tag: h2
```

[Demo](https://demo.pages.prisme.ai/en/RichText#advanced-usage)
