Skip to content

Commit 1d54a80

Browse files
DevRohit06claude
andcommitted
fix(docs): escape curly braces and angle brackets in MDX content
MDX interprets { and < as JSX expressions/tags. Replaced: - {json} in inline text with &#123;/&#125; HTML entities - <100ms with "Under 100ms" to avoid tag parsing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b68762d commit 1d54a80

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/architecture/token-resolution.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ flowchart TD
3131
|---|---|---|
3232
| 1 (highest) | `--token` CLI flag | `discli --token Bot_ABC123 message send ...` |
3333
| 2 | `DISCORD_BOT_TOKEN` environment variable | `export DISCORD_BOT_TOKEN=Bot_ABC123` |
34-
| 3 (lowest) | `~/.discli/config.json` file | `{"token": "Bot_ABC123"}` |
34+
| 3 (lowest) | `~/.discli/config.json` file | `&#123;"token": "Bot_ABC123"&#125;` |
3535

3636
The first source that provides a non-empty value wins. If none of the three sources has a token, discli exits with an error:
3737

docs/guides/building-agents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ if __name__ == "__main__":
810810
| Feature | `discli listen` (Levels 1-2) | `discli serve` (Levels 3-5) |
811811
|---------|------------------------------|------------------------------|
812812
| Connection | New connection per action | Single persistent connection |
813-
| Latency | 2-3s per action | <100ms per action |
813+
| Latency | 2-3s per action | Under 100ms per action |
814814
| Streaming | Not possible | Full support |
815815
| Threads | Can create (via CLI) | Can create and manage |
816816
| Typing indicator | Not practical | Full support |

docs/guides/serve-mode.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ This is handled internally by discli serve -- you do not need to worry about it.
550550
Launch `discli serve` as a subprocess with stdin/stdout pipes.
551551
</Step>
552552
<Step title="Ready">
553-
Wait for the `{"event": "ready"}` event on stdout. The bot is now connected to Discord.
553+
Wait for the `&#123;"event": "ready"&#125;` event on stdout. The bot is now connected to Discord.
554554
</Step>
555555
<Step title="Operate">
556556
Read events from stdout. Send actions to stdin. Use `req_id` to correlate responses.

docs/guides/streaming-responses.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ discli catches `HTTPException` on edits silently. If Discord is temporarily unav
309309
|----------|---------------|
310310
| LLM generates faster than 1.5s flush | Normal. Chunks batch, user sees smooth updates. |
311311
| LLM generates slower than 1.5s per token | User sees occasional jumps. Consider buffering a few tokens before sending as a chunk. |
312-
| Very short response (<10 tokens) | Streaming adds overhead for minimal benefit. Consider a direct `reply` instead. |
313-
| Very long response (>2000 chars) | Handled automatically. Overflow goes to follow-up messages. |
312+
| Very short response (under 10 tokens) | Streaming adds overhead for minimal benefit. Consider a direct `reply` instead. |
313+
| Very long response (over 2000 chars) | Handled automatically. Overflow goes to follow-up messages. |
314314

315315
## Next Steps
316316

docs/reference/serve-actions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ Answers can also be objects with emoji:
506506
|-------|----------|------|-------------|
507507
| `channel_id` | yes | string | Channel ID |
508508
| `question` | yes | string | Poll question |
509-
| `answers` | yes | array | List of answer strings or `{"text": "...", "emoji": "..."}` objects (min 2) |
509+
| `answers` | yes | array | List of answer strings or `&#123;"text": "...", "emoji": "..."&#125;` objects (min 2) |
510510
| `duration_hours` | no | integer | Duration in hours (default: 24) |
511511
| `multiple` | no | boolean | Allow multiple selections (default: false) |
512512
| `content` | no | string | Optional message text alongside the poll |

docs/reference/serve-events.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Emitted when a message is sent in a visible channel. Bot messages from other bot
8585
| `message_id` | string | Message snowflake ID |
8686
| `mentions_bot` | boolean | Whether the message @-mentions the bot |
8787
| `is_dm` | boolean | Whether this is a direct message |
88-
| `attachments` | array | List of `{"filename", "url", "size"}` objects |
88+
| `attachments` | array | List of `&#123;"filename", "url", "size"&#125;` objects |
8989
| `reply_to` | string \| null | Message ID this is a reply to, or `null` |
9090

9191
---

0 commit comments

Comments
 (0)