mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
12f4029610
* feat: telegram use parse mode ModeMarkdownV2 instead of ModeHTML * handle expandable block quotation starts, add test for all md2 formats * fix: linter issue * feat: added flag use_markdown_v2, corrected config, updated documentation * move parseChatID to parser_markdown_to_html * fix: tests and linter issues * fix: case with ~ * test: fixed Test_markdownToTelegramMarkdownV2 * fix: regex block-quote line > * fix: linter issues * fix: send chunk param mismatched, in edit msg use HTML parse mode too * fix: remove from .gitignore redundant comment
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
*bold \*text*
|
|
_italic \*text_
|
|
__underline__
|
|
~strikethrough~
|
|
||spoiler||
|
|
*bold _italic bold ~italic bold strikethrough ||italic bold strikethrough spoiler||~ __underline italic bold___ bold*
|
|
[inline URL](http://www.example.com/)
|
|
[inline mention of a user](tg://user?id=123456789)
|
|

|
|

|
|

|
|

|
|

|
|
`inline fixed-width code`
|
|
```
|
|
pre-formatted fixed-width code block
|
|
```
|
|
```python
|
|
pre-formatted fixed-width code block written in the Python programming language
|
|
```
|
|
>Block quotation started
|
|
>Block quotation continued
|
|
>Block quotation continued
|
|
>Block quotation continued
|
|
>The last line of the block quotation
|
|
**>The expandable block quotation started right after the previous block quotation
|
|
>It is separated from the previous block quotation by an empty bold entity
|
|
>Expandable block quotation continued
|
|
>Hidden by default part of the expandable block quotation started
|
|
>Expandable block quotation continued
|
|
>The last line of the expandable block quotation with the expandability mark||
|