Markdown Text Renderer
Converts Markdown-formatted text into Minecraft ChatComponents for use in tellraw, title commands, or boss bar names.
Basic usage
Each input line becomes a ChatComponents instance. Inline styles are parsed and mapped to Minecraft text component properties.
Supported inline syntax
| Markdown syntax | Minecraft property | Description |
|---|---|---|
**text** |
bold = true |
Bold |
*text* / _text_ |
italic = true |
Italic |
~~text~~ |
strikethrough = true |
Strikethrough |
__text__ |
underlined = true |
Underline (Minecraft extension) |
||text|| |
obfuscated = true |
Obfuscated (Minecraft extension) |
`code` |
color (codeColor) |
Inline code span |
[label](url) |
clickEvent = OpenUrl |
Clickable link |
§(#rrggbb)text§() |
color (RGB) |
Custom colored span |
Supported block syntax
| Markdown syntax | Rendering |
|---|---|
# Heading – ###### |
Bold + heading color (configurable) |
- item / * item |
Unordered list with bullet prefix |
1. item |
Ordered list with number prefix |
> quote |
Blockquote with │ prefix |
--- / *** / ___ |
Horizontal rule (strikethrough line) |
Not supported (Minecraft limitations)
The following Markdown features are not supported because Minecraft text components cannot represent them:
- Images (
) - Tables
- Nested blockquotes
- Multi-line code blocks (fenced
```) - HTML tags
- Footnotes
- Task lists (
- [ ]/- [x]) - Reference-style links (
[text][ref])
Examples
Configuration
| Property | Default | Description |
|---|---|---|
color |
null |
Default text color |
bold |
null |
Default bold state |
italic |
null |
Default italic state |
font |
null |
Minecraft font resource location |
headingColors |
level 1–6 map | Color per heading level (gold, yellow, etc.) |
codeColor |
Color.GRAY |
Color for inline code spans |
linkColor |
Color.AQUA |
Color for link text |
linkUnderline |
true |
Whether links are underlined |
blockquotePrefix |
"│ " |
String prepended to blockquote lines |
bulletChar |
"• " |
Bullet string for unordered list items |
hrChar |
"─" |
Character repeated for horizontal rules |
hrLength |
20 |
Number of repetitions for horizontal rules |
