Repository navigation
Conversation
Szpadel
commented
Jan 13, 2026
- add markdown-to-Signal formatter with style ranges and chunking
- send Signal text + captions with style metadata
- update outbound delivery to use Signal formatting and add tests for chunking
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f9d19b4f2e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const markdownChunks = | ||
| textLimit === undefined ? [text] : chunkMarkdownText(text, textLimit); | ||
| for (const markdownChunk of markdownChunks) { | ||
| throwIfAborted(abortSignal); | ||
| const formatted = markdownToSignalText(markdownChunk); |
There was a problem hiding this comment.
Preserve inline markdown when chunking Signal text
Chunking markdown before formatting can split inline constructs (e.g., **bold text** or [label](url)) across chunk boundaries when textLimit is small. chunkMarkdownText only guards fenced code blocks, so a chunk can contain an opening marker without its closing pair; markdownToSignalText then treats the partial markup as literal text, producing stray **/[]() instead of styled output. This is user-visible whenever a long, formatted message is split. A safer approach is to format the full markdown once and then apply chunkSignalText to the formatted text (or use a chunker that respects inline spans).
Useful? React with 👍 / 👎.
|
closed via #920 |