Conversation
Render literal text and WhatsApp formatting directly from the Markdown AST, preserving code content and intentional backslashes. Signed-off-by: Lukas Scholten <46937006+luksch42@users.noreply.github.com>
Add serializer lookahead markers and a regression test for deeply nested formatting. Signed-off-by: Lukas Scholten <46937006+luksch42@users.noreply.github.com>
Contributor
|
@luksch42 is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #908.
Outgoing WhatsApp Markdown such as
(~80 % easy)currently becomes(\~80 % easy), leaving a visible backslash in the delivered message. Render literal text, bold, and strikethrough directly from the Markdown AST so literal tildes and intentional backslashes are preserved, and formatting markers inside inline and fenced code remain unchanged.Expose typed serialization handlers in
stringifyMarkdownand provide lookahead markers to avoid repeated subtree serialization for deeply nested formatting. Includes regression tests, patch changesets, and documentation updates.Test plan
pnpm validatepasses (knip, lint/format, typecheck, tests, and build).pnpm konsistentpasses.pnpm changeset statusrecognizes the patch changesets.Checklist
git commit -s)pnpm validatepasses