Skip to content

fix: pick an escape placeholder that cannot collide with the destination - #284

Merged
LadyBluenotes merged 1 commit into
mainfrom
fix-markdown-placeholder
Sep 12, 2026
Merged

LadyBluenotes merged 1 commit into
mainfrom
fix-markdown-placeholder

Conversation

@LadyBluenotes

Copy link
Copy Markdown
Member

Summary

Follow-up to CodeRabbit's finding on #275. The Markdown destination rewrite hid backslash escapes behind a fixed U+E000 while path functions ran, then restored every U+E000 as a backslash, so a destination that already contained U+E000 (docs/a\uE000b.md) was corrupted. The placeholder is now the first private-use code point that does not occur in the destination. Test added for a destination containing both U+E000 and an escaped paren.

@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 551c62e4-c6e3-4531-9007-7452a831b35e

📥 Commits

Reviewing files that changed from the base of the PR and between 265dc83 and bd76212.

📒 Files selected for processing (3)
  • .changeset/markdown-placeholder-collision.md
  • packages/intent/src/core/markdown.ts
  • packages/intent/tests/markdown.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nx-cloud

nx-cloud Bot commented Sep 12, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit bd76212

Command Status Duration Result
nx affected --targets=test:eslint,test:sherif,t... ✅ Succeeded 46s View ↗
nx run-many --targets=build ✅ Succeeded 3s View ↗

☁️ Nx Cloud last updated this comment at 2026-09-12 02:56:47 UTC

@LadyBluenotes
LadyBluenotes force-pushed the fix-markdown-placeholder branch from eeb127a to b858159 Compare September 12, 2026 02:17
@pkg-pr-new

pkg-pr-new Bot commented Sep 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@tanstack/intent@284

commit: bd76212

@codspeed-hq

codspeed-hq Bot commented Sep 12, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 9 untouched benchmarks


Comparing fix-markdown-placeholder (bd76212) with main (265dc83)

Open in CodSpeed

The Markdown destination rewrite hid backslash escapes behind a fixed
U+E000 while path functions ran, then turned every U+E000 back into a
backslash. A destination that already contained U+E000 came out with a
backslash in its place. Choose the first private-use code point absent
from the destination instead.

Follow-up to a CodeRabbit finding on #275.
@LadyBluenotes
LadyBluenotes force-pushed the fix-markdown-placeholder branch from b858159 to bd76212 Compare September 12, 2026 02:55
@LadyBluenotes
LadyBluenotes merged commit 864562c into main Sep 12, 2026
10 checks passed
@LadyBluenotes
LadyBluenotes deleted the fix-markdown-placeholder branch September 12, 2026 03:06
@github-actions github-actions Bot mentioned this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant