Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@alexjeffburke/unexpected-markdown
Advanced tools
A markdown parser that evaluates examples and highligh syntax using unexpected
This module uses the markdown parser marked to generate html output from markdown files.
In addition to what marked already offers, this module uses magicpen-prism to syntax highlight code blocks and uses unexpected to evaluate JavaScript code examples.
Right now the documentation for this plugin is pretty lacking, until that is fixed the best example on how to use the plugin is to look at how it is used in unexpected.
An example is a JavaScript code block:
```js
helloWorld()
```
If you expect the example to fail, you can follow the code block with an expected output block:
```output
Error: Silence this is a library!
```
There are a few things you can achieve more then what is explained above, like async examples with promises and skiping examples for different environments or just skipping evaluation altogether. For now you'll have to look at how unexpected does it to learn the ticks.
FAQs
A markdown parser that evaluates examples and highligh syntax using unexpected
The npm package @alexjeffburke/unexpected-markdown receives a total of 1 weekly downloads. As such, @alexjeffburke/unexpected-markdown popularity was classified as not popular.
We found that @alexjeffburke/unexpected-markdown demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.