Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
koto-parser
Advanced tools
KotoParser is an easily-extensible asynchronous Markdown parser. Live Demo.
npm install koto-parser
const KotoParser = require('koto-parser');
KotoParser.render('I am using **markdown**', function(error, result) {
console.log(result);
});
<script type="application/javascript" src="koto-parser.js"></script>
<script type="application/javascript">
KotoParser.render('I am using **markdown**', function(error, result) {
console.log(result);
});
</script>
Parses and renders all the blocks and tokens of the given text.
Argument | Default | Description |
---|---|---|
text | ||
[options] | ||
[options.blockTypes] | An array of block-type plugins | |
[options.tokenTypes] | An array of token-type plugins | |
[options.sanitize] | See index.js | An option passed to escape-html-whitelist. To turn off the sanitization, set to false . |
callback | A callback function that takes two arguments: error and result |
Parses all the blocks and tokens of the given text, but not renders them. Returns an array of the root blocks.
You can easily add or modify the rule by adding a class that extends Block
or Token
to the options.
See the Plugin Development Guide for further information.
If you have any bugs, suggestions, or any other questions, please create an issue.
Pull requests are always welcome. Before submitting pull requests, just make sure your changes pass the unit test by running npm test
command.
FAQs
KotoParser: Easily-extensible asynchronous Markdown parser
We found that koto-parser 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.