A remark-lint rule to check language syntax in a code block.
npm install remark-lint-code-block-syntax

A remark-lint rule to check language syntax in a code block.
- JavaScript
- JSON
- JSONC
- JSON5
- YAML
- CSS
``shell`
npm install remark-lint-code-block-syntax
Via a command-line argument:
`sh-session`
$ remark --use remark-lint-code-block-syntax
docs/config.md
32:1-32:4 warning Invalid JSON: Unexpected token a in JSON at position 128 code-block-syntax remark-lint
Via a configuration file:
`json`
{
"plugins": ["remark-lint-code-block-syntax"]
}
Via JavaScript API:
`js
import { reporter } from "vfile-reporter";
import { remark } from "remark";
import remarkLintCodeBlockSyntax from "remark-lint-code-block-syntax";
main();
async function main() {
const code =
\\\js\
const sum = 1 +;
\\;`
const file = await remark().use(remarkLintCodeBlockSyntax).process(code);
console.error(reporter(file));
}
This section is for developers or maintainers.
1. Check out the latest code on your local repository
2. Run npm version git push --follow-tags`
3. Run
4. Start editing a new GitHub release
5. Chose the new tag
6. Click Generate release notes
7. Remove trivial change items from the release notes
8. Click Save draft
9. Double-check the draft release
10. Click Publish release if you find no problems (GitHub Actions will start publishing automatically)