Skip to content

Conversation

@nmoskaleva
Copy link
Collaborator

Code blocks without language identifiers render with incorrect styles. This commit adds an awk script to lint-staged to check for such cases. (The script checks in_block to distinguish between opening and closing backticks.)

@netlify
Copy link

netlify bot commented Dec 23, 2025

Deploy Preview for criipto-docs ready!

Name Link
🔨 Latest commit 79c527a
🔍 Latest deploy log https://app.netlify.com/projects/criipto-docs/deploys/694a94913a56750008ea6ddd
😎 Deploy Preview https://deploy-preview-264--criipto-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nmoskaleva
Copy link
Collaborator Author

nmoskaleva commented Dec 23, 2025

@fkj an intentionally wrong file doesn't pass, (un)fortunately.

The error message is just
awk 'BEGIN {in_block=0} /^/ { if (!in_block && /^$/) exit 1; in_block = !in_block }' failed without output (FAILED).

Code blocks without language identifiers render with incorrect styles. This commit adds an `awk` script to `lint-staged` to check for such cases. (The script checks `in_block` to distinguish between opening and closing backticks.)
@nmoskaleva nmoskaleva force-pushed the add-unidentified-code-blocks-warnings branch from c67fc09 to 79c527a Compare December 23, 2025 13:09
@nmoskaleva nmoskaleva merged commit 7490fbe into master Dec 23, 2025
5 checks passed
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.

3 participants