Skip to content

Update Textmate Grammar to support more than 3 backticks for code blocks - #6197

Merged
DanTup merged 1 commit into
masterfrom
update-syntax-highlight-for-more-backticks
Sep 24, 2026
Merged

DanTup merged 1 commit into
masterfrom
update-syntax-highlight-for-more-backticks

Conversation

@DanTup

@DanTup DanTup commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Code blocks can use more than three backticks in markdown so that triple-backticks can appear inside the content. They can also be closed with any number of backticks as long as it is more than the number that opened it.

Before (the orange areas should all be a single code block):

Screenshot 2026-09-24 110319

After:

Screenshot 2026-09-24 110404

Related PRs:

Fixes #6189

@codecov

codecov Bot commented Sep 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.83%. Comparing base (e984136) to head (9c0f357).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6197      +/-   ##
==========================================
+ Coverage   70.82%   70.83%   +0.01%     
==========================================
  Files         170      171       +1     
  Lines       13191    13206      +15     
  Branches     2657     2660       +3     
==========================================
+ Hits         9343     9355      +12     
- Misses       3325     3327       +2     
- Partials      523      524       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DanTup
DanTup merged commit 792d851 into master Sep 24, 2026
24 checks passed
@DanTup
DanTup deleted the update-syntax-highlight-for-more-backticks branch September 24, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in editor Relates to code editing or language features is bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fenced code blocks should support any number of backticks > 3 in textmate grammar

1 participant