Discord Markdown Formatting
Format text for Discord's chat rendering engine. Discord uses a modified subset of Markdown with some unique additions (spoilers, timestamps, subtext, guild navigation).
Output Presentation — CRITICAL
When composing a Discord message for the user, always present the final message inside a fenced code block so the user can copy-paste it directly into Discord with all markdown formatting intact.
Why: Claude's chat interface renders markdown (e.g., **bold** becomes bold). If the user copies rendered text, the markdown syntax is stripped and the message loses its formatting when pasted into Discord. A code block preserves the raw syntax.
How to Present Discord Messages
Always wrap the final copy-paste-ready message in a fenced code block with the markdown language tag:
INLINECODE2
Rules
- 1. Always use a fenced code block — Triple backticks with
markdown language identifier - The ENTIRE message goes in ONE block — Everything the user will paste into Discord lives inside a single fenced code block. No part of the Discord message should ever appear outside the block as rendered markdown
- Explain outside the block — Put any notes, options, or context before or after the code block, never inside it
- Handle nested code blocks — If the Discord message itself contains code blocks, use four backticks (`````
) as the outer fence so the inner triple backticks are preserved. The user copies everything between the outer fence — the inner triple backticks are part of the Discord message: