Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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 3 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.