Plane.so Discord integration
Find a file
Claw 4bb15a5dca fix: preserve newlines when forwarding comments to Discord (#1)
## Problem
`comment_stripped` loses line breaks from HTML content, causing multiline comments to appear as a single line in Discord.

## Solution
Added `htmlToDiscordText()` helper that converts `comment_html` to Discord-friendly text:
- `</p><p>` → double newline
- `<br>` → newline
- `<li>` → bullet points
- Strips remaining HTML tags
- Decodes HTML entities (`&amp;`, `&nbsp;`, etc.)

Falls back to `comment_stripped` if HTML is unavailable.

Reviewed-on: #1
Co-authored-by: Claw <claw@perny.dev>
Co-committed-by: Claw <claw@perny.dev>
2026-02-02 18:11:19 +02:00
src fix: preserve newlines when forwarding comments to Discord (#1) 2026-02-02 18:11:19 +02:00
.dockerignore docker! 2026-01-30 17:53:40 +02:00
.env.example frfr nocap 2026-01-30 20:00:51 +02:00
.gitignore Add .gitignore 2026-01-30 02:48:55 +02:00
bun.lock http! 2026-01-30 03:04:26 +02:00
Dockerfile fuck u 2026-01-30 19:41:47 +02:00
index.ts fix: preserve newlines when forwarding comments to Discord (#1) 2026-02-02 18:11:19 +02:00
LICENSE Initial commit 2026-01-30 02:19:30 +02:00
package.json http! 2026-01-30 03:04:26 +02:00
README.md Initial commit 2026-01-30 02:19:30 +02:00
tsconfig.json Add Discord to Plane sync bot 2026-01-30 02:48:13 +02:00

flight-attendant

Plane.so Discord integration