Skip to content

fix(markdown): don't strikethrough single-tilde text (#154)#240

Merged
edelauna merged 1 commit into
Zoo-Code-Org:mainfrom
proyectoauraorg:fix/154-markdown-single-tilde
May 21, 2026
Merged

fix(markdown): don't strikethrough single-tilde text (#154)#240
edelauna merged 1 commit into
Zoo-Code-Org:mainfrom
proyectoauraorg:fix/154-markdown-single-tilde

Conversation

@proyectoauraorg
Copy link
Copy Markdown
Contributor

Summary

Fixes #154. Text like 1. Lorem ~10 ipsum dolor sit 1~3 amet. was rendered with the middle struck through, because remark-gfm treats a single ~ around text as strikethrough. VS Code's own markdown does not.

Fix

Pass { singleTilde: false } to remark-gfm in MarkdownBlock.tsx, so only ~~text~~ (double tilde) renders as strikethrough. Single tildes around numbers/words are left as literal text.

Testing

vitest run src/components/common/__tests__/MarkdownBlock.spec.tsx
# Test Files 1 passed (1) · Tests 6 passed (6)

Added tests: single-tilde input produces no <del> (and keeps ~10 / 1~3 literally), while ~~struck~~ still renders a <del>.

…o-Code-Org#154)

remark-gfm treats a single ~ around text (e.g. "~10", "1~3") as strikethrough,
unlike VS Code's markdown. Pass { singleTilde: false } so only "~~text~~"
renders as strikethrough.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 21, 2026

Warning

Rate limit exceeded

@proyectoauraorg has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 4 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3b4a0ec1-cd76-420b-8641-4b44f8dd1cc1

📥 Commits

Reviewing files that changed from the base of the PR and between 166bc3f and c34ddb5.

📒 Files selected for processing (2)
  • webview-ui/src/components/common/MarkdownBlock.tsx
  • webview-ui/src/components/common/__tests__/MarkdownBlock.spec.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@edelauna edelauna added this pull request to the merge queue May 21, 2026
Merged via the queue into Zoo-Code-Org:main with commit 2aa944e May 21, 2026
10 checks passed
@proyectoauraorg proyectoauraorg deleted the fix/154-markdown-single-tilde branch May 21, 2026 22:57
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.

[BUG] Markdown unintentional strikethrough?

2 participants