Skip to content

fix: red syntax highlighting on Node crawl response example#1043

Open
RichardBray wants to merge 1 commit into
mainfrom
fix/js-response-syntax-highlighting
Open

fix: red syntax highlighting on Node crawl response example#1043
RichardBray wants to merge 1 commit into
mainfrom
fix/js-response-syntax-highlighting

Conversation

@RichardBray

Copy link
Copy Markdown
Collaborator

Summary

The Node SDK crawl response snippet on /features/crawl rendered almost entirely red. The snippet is a JavaScript object literal (unquoted keys, template literals, [Object], bare ...) but was fenced as ````json```, so the JSON grammar marked nearly every token as invalid.

Changed the fence from json Node``` to js Node``` in:

  • snippets/v2/crawl/sdk-example/js-response.mdx
  • snippets/v1/crawl/sdk-example/js-response.mdx

Swept all base snippet dirs for other ````json``` fences with non-JSON content — these were the only two.

Before / After

before and after

🤖 Generated with Claude Code

The Node SDK crawl response snippet is a JS object literal (unquoted
keys, template literals, [Object]), but was fenced as ```json. The JSON
grammar can't parse it, so the highlighter rendered most tokens as
errors (red) on /features/crawl. Tag it as js instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
firecrawl 🟢 Ready View Preview Jun 11, 2026, 12:04 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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