Repository navigation
test(web): Keep the tab off the blockquote marker in the nested fence test - #1135
Merged
Merged
Conversation
… test marked 18.1.2 expands a tab right after `> ` into spaces (markedjs/marked#4110), which breaks the lock file maintenance PR (#1109). Co-authored-by: usesprocket[bot] <306702232+usesprocket[bot]@users.noreply.github.com>
|
Deployment failed for project usesprocket.dev with the following error: Learn More: https://vercel.com/spikonado?upgradeToPro=build-rate-limit |
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.
Unblocks #1109 (lock file maintenance).
marked18.1.2 changed how it handles a tab right after a blockquote marker (markedjs/marked#4110). In> \tconsole.log(x);it now turns the tab into two spaces. The CommonMark reference parser (commonmark.js) andmarked18.1.1 both keep the tab. 18.1.3 still has this behavior.The
highlights nested fences while preserving literal code, tabs, and blank linestest put its tab at the start of a quoted line, so it failed on #1109. The tab now comes later in the line (console.log(markup);\t// raw), so the test still checks that tabs survive, on both versions. The only visible effect for users: a line indented with a tab inside a code fence in a blockquote shows two spaces instead.I didn't pin
markedto 18.1.1 because that would drop the other 18.1.2 parser fixes for a rare case.Verified:
chat-markdown.test.tsxpasses with main's lock file (marked18.1.1) and with #1109's lock file (18.1.2).Written by Opus 5.5 (opus-5.5) through Sprocket.


Confidence Score: 5/5
This test-only change appears safe to merge.Summary
Updates the quoted code-fence test to avoid placing a tab immediately after the blockquote marker.
Reviews (1) · Last reviewed commit: "test(web): Keep the tab off the blockquo..." · Reviewed by Greptile