> For the complete documentation index, see [llms.txt](https://docs.documint.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.documint.me/templates/working-with-dynamic-data/field-tokens/token-formatting/text.md).

# Text

## Text Formatting

* Plain vs markdown formatting.
* Default value.
* Display rules.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FAwYbB74HEKlgdRTzg7ix%2Fstring%20token%20formatting.png?alt=media&amp;token=4e82b465-cc04-45ed-bdcf-9e72bb5979d4" alt="" width="563"><figcaption></figcaption></figure>

### Rich Text

A text field in your base will, by default, be displayed `Plain`. However, if you have a rich text field in your database, you can format its content to appear correctly in the final document.&#x20;

{% embed url="<https://youtu.be/HAGpBwkkuzQ>" %}

Click on one of these options to edit the token or double-click it.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Fv1Mzf4p0jEuank9BIhiC%2Frich%20text%20token%20template.png?alt=media&amp;token=cfb26cf4-e681-46d0-acd5-53c4e67c36d3" alt=""><figcaption></figcaption></figure>

Then select the `Markdown` option in the Text Type.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Fr6t7haK6TqvjX2tFYSFT%2Frich%20text%20token%20formatting.png?alt=media&amp;token=b6903b4b-33ba-4c03-a439-3ee59fcedb44" alt="" width="375"><figcaption></figcaption></figure>

You also have two options for Markdown wrap

1. Inline: the content will be displayed on the same line where you added the token
2. Break a new line: the content will be displayed after a line break

And voilá

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FFybguzMbMaAeHlhMjY8R%2Frich%20text%20token%20preview.png?alt=media&amp;token=e3e70fc7-609b-442a-8725-ecda59dc1184" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.documint.me/templates/working-with-dynamic-data/field-tokens/token-formatting/text.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
