markdown support for talk messages

This commit is contained in:
2026-08-16 21:35:41 +02:00
parent bd83a88e70
commit 02a7b87b5b
14 changed files with 379 additions and 19 deletions
+20
View File
@@ -324,6 +324,22 @@ class DemoTalk {
message: 'Gute Idee, ich sammle schon mal Vorschläge.',
reactions: {'👍': 3},
),
_msg(
id: base + 4,
token: token,
actor: 'ben',
display: 'Ben',
ago: const Duration(hours: 2),
message:
'## Ablauf Sommerfest\n'
'Ein paar **Punkte** für Mittwoch:\n\n'
'- Stände aufbauen ab *14 Uhr*\n'
'- [x] Getränke bestellt\n'
'- [ ] Musik organisieren\n\n'
'> Bitte bringt Ideen mit!\n\n'
'Mehr Infos auf der [SV-Seite](https://marianum-fulda.de).',
markdown: true,
),
];
}
@@ -346,6 +362,7 @@ class DemoTalk {
required Duration ago,
required String message,
Map<String, int>? reactions,
bool markdown = false,
}) => _msg(
id: id,
token: token,
@@ -354,6 +371,7 @@ class DemoTalk {
ago: ago,
message: message,
reactions: reactions,
markdown: markdown,
);
static GetChatResponseObject _msg({
@@ -364,6 +382,7 @@ class DemoTalk {
required Duration ago,
required String message,
Map<String, int>? reactions,
bool markdown = false,
}) => GetChatResponseObject(
id,
token,
@@ -380,6 +399,7 @@ class DemoTalk {
reactions,
null,
null,
markdown,
);
static GetRoomResponseObject _room({