diff options
Diffstat (limited to 'src/routes/group.ts')
-rw-r--r-- | src/routes/group.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/group.ts b/src/routes/group.ts index 8afd766..1bbf501 100644 --- a/src/routes/group.ts +++ b/src/routes/group.ts @@ -269,10 +269,11 @@ router.post("/known/groups", async (req: Request, res: Response) => { return { id: group.id, name: group.name, - description: marked - .parse(group.description, { + description: ( + marked.parse(group.description, { renderer: renderPlain(), - }) + }) as string + ) .split(" ") .splice(0, 40) .join(" ") |