
Product
A Fresh Look for the Socket Dashboard
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
* Markcheck tests Markdown code blocks – to prevent errors in documentation (readmes, blogs, books, etc.). * Name of npm package: [`markcheck`](https://www.npmjs.com/package/markcheck)
markcheck
Highlights:
Uses normal Markdown syntax – not a custom version of it: Everything custom happens inside Markdown comments.
No external files: The Markdown file contains all the information that is needed to run it: Configuration files, demo text files, etc. can all be embedded in Markdown.
Works for most programming languages: The only requirement is that there is a shell command that runs text files with the language’s code. See demo/demo-bash.md
for an example of testing a programming language that Markcheck has no built-in support for.
Successfully used in a big project: I tested almost all of the code shown in my book “Exploring JavaScript”. Its PDF has 687 pages.
Provides versatile tools for checking code: Human readers of the published Markdown never see the complexity that is occasionally needed to make code blocks testable. These are some of the tools at our disposal – they can all be used from within Markdown files:
Checking JavaScript is reasonably fast:
Caveats:
demo/demo-typescript.md
for more information.The following subsections contain three examples. For more examples, see the quick start part of Markcheck’s manual.
```js
assert.equal(
'abc' + 'abc',
'abcabc'
);
```
No additional configuration is needed: The Node.js assert.*
methods are available by default.
stdout
```js
console.log('Hello!');
```
<!--markcheck define="stdout"-->
```
Hello!
```
before:
<!--markcheck before:
function functionThatShouldThrow() {
throw new Error();
}
-->
```js
try {
functionThatShouldThrow();
assert.fail();
} catch (_) {
// Success
}
```
I have rewritten Markcheck several times over the years, until I arrived at the current version. If you find this tool or any of my other free work useful, I would appreciate a donation:
FAQs
* Markcheck tests Markdown code blocks – to prevent errors in documentation (readmes, blogs, books, etc.). * Name of npm package: [`markcheck`](https://www.npmjs.com/package/markcheck)
The npm package markcheck receives a total of 17 weekly downloads. As such, markcheck popularity was classified as not popular.
We found that markcheck demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
Industry Insights
Terry O’Daniel, Head of Security at Amplitude, shares insights on building high-impact security teams, aligning with engineering, and why AI gives defenders a fighting chance.
Security News
MCP spec updated with structured tool output, stronger OAuth 2.1 security, resource indicators, and protocol cleanups for safer, more reliable AI workflows.