Commit dc82672
committed
fix(telegram): align markdown v1 bracket escaping
Purpose of the change:
- Align apprise-go Telegram Markdown v1 rendering with the upstream Python backport and live Telegram client behavior.
How behavior was before:
- Markdown v1 text escaped literal '[' characters.
- Telegram accepted the payload but displayed the backslash in client output.
Why that was a problem:
- Cross-testing against the Python backport and a live Telegram client showed visible bracket escapes in Markdown v1 labels.
What the new change accomplishes:
- Stops escaping literal '[' characters in Telegram Markdown v1 text.
- Keeps MarkdownV2 escaping unchanged.
How it works:
- Removes '[' from the Markdown v1 text replacer.
- Adds a regression test asserting literal brackets remain visible without backslashes.1 parent 653d524 commit dc82672
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | 347 | | |
349 | 348 | | |
350 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
| |||
0 commit comments