> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rich text formatting

> Platform-specific rich text syntax and formatting specifications for the richText field on Reddit, X (Twitter), Fansly, and OnlyFans.

The Posttu API supports an optional `richText` field alongside plain `text` on `base`, per-channel overrides, thread items, and post update endpoints (`POST /api/v1/posts/create`, `PATCH /api/v1/posts/{id}`, `POST /api/v1/posts/update`).

When `richText` is supplied, Posttu publishes the formatted body to platforms that support rich formatting while retaining `text` as the plain-text fallback for previews, search, and platforms that only accept plain text.

## Platform support summary

| Platform | Wire format | Supported styles |
| - | - | - |
| **Reddit** | Reddit Snoomark Markdown | Bold, italic, strikethrough, inline code, fenced code blocks, headings (`#`–`######`), lists, blockquotes, links, spoilers (`>!text!<`), superscript (`^word` / `^(phrase)`), horizontal rules |
| **X (Twitter)** | Unicode Mathematical Sans-Serif + plain entities | Bold, italic, bold-italic, monospace, strikethrough; `@mentions`, `#hashtags`, `$cashtags`, and `https://` URLs remain plain ASCII |
| **Fansly** | Fansly custom markup | Bold (`**text**`), italic (`*text*`), strikethrough (`~~text~~`), font size (`[s:<size>]text[/s]`), font color (`[c:<color>]text[/c]`), links (`[label](https://...)`) |
| **OnlyFans** | `m-editor` HTML (always wrapped in `<p>`) | Bold (`<strong>`), italic (`<em>`), font sizes (`m-editor-fs__*`), font colors (`m-editor-fc__*`), line breaks (`<br>`) |

> [!NOTE]
>
> Platforms without native rich text formatting (such as Instagram, TikTok, Pinterest, and Threads) publish the plain `text` field.

***

## Reddit (Snoomark Markdown)

Reddit accepts standard Reddit-flavored Markdown (Snoomark) in `richText` for text posts as well as body captions on image, video, gallery, link, and poll submissions.

### Supported syntax

| Format | Syntax |
| - | - |
| Bold | `**bold text**` |
| Italic | `*italic text*` |
| Bold + Italic | `***bold italic***` |
| Strikethrough | `~~strikethrough~~` |
| Inline code | `` `inline code` `` |
| Code block | Fenced with triple backticks (` ``` `) |
| Headings | `# H1` through `###### H6` |
| Unordered list | `- Item` |
| Ordered list | `1. Item` |
| Blockquote | `> Quoted text` |
| Link | `[Posttu](https://posttu.com)` |
| Spoiler | `>!hidden text!<` |
| Superscript | `^word` or `^(multiple words)` |
| Horizontal rule | `---` |

### Example

```json theme={null}
{
  "postDetails": {
    "base": {
      "title": "Release notes for v2.4",
      "text": "Highlights: faster scheduling, rich formatting, and spoiler support.",
      "richText": "## Highlights\n\n- **Faster scheduling** with multi-post queues\n- *Rich text* formatting\n- >!Hidden bonus feature!< and ^(superscript notes)\n\nRead more at [Posttu Docs](https://posttu.com/docs).",
      "timestamp": "2026-05-01T15:00:00Z",
      "other": {
        "REDDIT": {
          "subreddits": [{ "name": "test" }]
        }
      }
    },
    "channels": ["ch_reddit_main"]
  }
}
```

***

## X (Twitter)

The X API does not expose native Markdown or HTML formatting fields on standard posts. Instead, Posttu formats `richText` for X using Unicode Mathematical Sans-Serif symbols and combining strikethrough (`U+0336`) while preserving interactive entities.

### Formatting rules

* **Supported styles**: **Bold**, *Italic*, ***Bold Italic***, `Monospace`, and ~~Strikethrough~~.
* **Entity preservation**: `@mentions`, `#hashtags`, `$cashtags`, and `http(s)://` URLs are **never** converted to stylized Unicode so that handles, tags, and links stay clickable and indexed on X.
* **Weighted character count**: Styled Unicode alphanumeric characters belong to supplementary Unicode planes and count as **2 weighted characters** each toward X's 280-character standard limit (or 25,000 for X Premium accounts). URLs are always counted as 23 characters.

### Example

```json theme={null}
{
  "postDetails": {
    "base": {
      "text": "Big launch today with @posttuapp #buildinpublic https://posttu.com",
      "richText": "𝗕𝗶𝗴 𝗹𝗮𝘂𝗻𝗰𝗵 𝘵𝘰𝘥𝘢𝘺 with @posttuapp #buildinpublic https://posttu.com",
      "timestamp": "2026-05-01T15:00:00Z"
    },
    "channels": ["ch_twitter_main"]
  }
}
```

***

## Fansly

Fansly uses a custom hybrid markup syntax supporting Markdown inline styles, bracketed size and color tags, and inline links.

### Supported syntax

| Format | Syntax | Example |
| - | - | - |
| Bold | `**text**` | `**VIP drop**` |
| Italic | `*text*` | `*limited time*` |
| Strikethrough | `~~text~~` | `~~$20~~` |
| Font size | `[s:<size>]text[/s]` | `[s:lg]Big announcement[/s]` |
| Font color | `[c:<color>]text[/c]` | `[c:#ff4d94]Exclusive set[/c]` |
| Link | `[label](https://...)` | `[Unlock here](https://fansly.com)` |

Recommended size tokens: `sm`, `md`, `lg`, `xl` (or explicit CSS pixel sizes supported by Fansly). Color values accept standard CSS hex codes such as `#ff4d94`, `#00aff0`, or `#f59e0b`.

### Example

```json theme={null}
{
  "postDetails": {
    "base": {
      "text": "VIP drop tonight! Limited time offer.",
      "richText": "[s:lg]**VIP drop tonight!**[/s]\n[c:#ff4d94]*Limited time offer*[/c] ~~$25~~ **$15** — [See bundle](https://fansly.com)",
      "timestamp": "2026-05-01T18:00:00Z"
    },
    "channels": ["ch_fansly_main"]
  }
}
```

***

## OnlyFans

OnlyFans expects `m-editor` HTML in `richText`. Every OnlyFans post payload is **always wrapped in a `<p>...</p>` tag**, with `<br>` for line breaks.

### Supported tags & CSS classes

| Feature | HTML representation |
| - | - |
| Root wrapper (required) | `<p>...</p>` |
| Line break | `<br>` |
| Bold | `<strong>text</strong>` |
| Italic | `<em>text</em>` |
| Font size: Smallest | `<span class="m-editor-fs__sm">...</span>` |
| Font size: Small | `<span class="m-editor-fs__s">...</span>` |
| Font size: Default | `<span class="m-editor-fs__default">...</span>` |
| Font size: Large | `<span class="m-editor-fs__l">...</span>` |
| Font size: Largest | `<span class="m-editor-fs__lg">...</span>` |
| Font color: Gray (`#8a96a3`) | `<span class="m-editor-fc__gray">...</span>` |
| Font color: Blue 1 (`#00aff0`) | `<span class="m-editor-fc__blue-1">...</span>` |
| Font color: Blue 2 (`#1b98e0`) | `<span class="m-editor-fc__blue-2">...</span>` |

Font size and color classes can be combined on the same `<span>` element, and inline `<strong>` and `<em>` tags nest inside the styled `<span>`:

```html theme={null}
<p>default <span class="m-editor-fs__s">small </span><span class="m-editor-fs__sm">smallest </span><span class="m-editor-fs__l">large </span><span class="m-editor-fs__lg">largest </span><span class="m-editor-fs__default"><strong>bold </strong><em><strong>italic </strong></em></span><span class="m-editor-fs__default m-editor-fc__blue-1">color1 </span><span class="m-editor-fs__default m-editor-fc__blue-2">color2 color3 </span><span class="m-editor-fc__blue-2 m-editor-fs__l"><em><strong>combination</strong></em></span></p>
```

> [!TIP]
>
> If you omit the outer `<p>` tag when submitting `richText` for OnlyFans, Posttu automatically wraps the payload in `<p>...</p>` before publishing.

### Example

```json theme={null}
{
  "postDetails": {
    "base": {
      "text": "New exclusive set live now!",
      "richText": "<p><span class=\"m-editor-fs__l m-editor-fc__blue-1\"><strong>New exclusive set</strong></span> <span class=\"m-editor-fs__default\"><em>live now!</em></span></p>",
      "timestamp": "2026-05-01T19:00:00Z"
    },
    "channels": ["ch_onlyfans_main"]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.