Skip to content

Add docs on formatting options#55

Merged
KnightNiwrem merged 9 commits intogrammyjs:masterfrom
KnightNiwrem:master
Nov 29, 2025
Merged

Add docs on formatting options#55
KnightNiwrem merged 9 commits intogrammyjs:masterfrom
KnightNiwrem:master

Conversation

@KnightNiwrem
Copy link
Copy Markdown
Collaborator

No description provided.

KnightNiwrem and others added 9 commits November 29, 2025 08:23
Add comprehensive documentation for all three Telegram formatting styles:
- MarkdownV2.md: Full entity reference with syntax, MessageEntity types, and FormattedString mappings
- HTML.md: HTML tag reference with all supported elements and nesting rules
- Markdown.md: Legacy format documentation with deprecation notice and migration guide

Each document includes:
- Entity reference tables
- Detailed syntax examples
- MessageEntity JSON structures
- FormattedString usage examples
- Nesting rules and limitations
- Fix redeclared const result variables in code examples (use unique names)
- Correct 'instance method' comments to 'static method' where applicable
- Use consistent text in expandable blockquote examples
- Add closing || to expandable blockquote syntax in MarkdownV2 table
- Fix expandable_blockquote MessageEntity length to 108
docs: add formatting options documentation
Remove the 'Example' column from entity reference tables in Markdown.md
and MarkdownV2.md to match the format used in HTML.md.

Also fix the broken table in MarkdownV2.md caused by incorrectly
escaped markdown (|| in expandable blockquote row).
Remove template literal examples from the FormattedString Method column
to fix table rendering issues caused by escaped backticks.
docs: remove examples column from entity reference tables
Remove template literal examples from the FormattedString Method column
to fix table rendering issues caused by escaped backticks.
docs: simplify FormattedString Method column in HTML.md
@KnightNiwrem KnightNiwrem merged commit 798e995 into grammyjs:master Nov 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant