Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
markdown-toolset
Advanced tools
Tiny module for markdown editing
There are plenty of markdown editors out there but no simple small tool that provides just basic markdown editing capabilities without binding you to specific editor implementation.
npm install markdown-toolset --save
or
bower install markdown-toolset --save
or just git clone and include dist/markdown-toolset.js on your page.
In browser it will try to find angular
and register itself as markdown-toolset
module. You then can include it in your module dependencies and inject markdownToolset
service.
Without angular it will just pollute global scope with markdownToolset
object.
var mt = require('markdown-toolset')
mt.italic('text') //*text*
mt.bold('text') //**text**
mt.h1('text') //# text
mt.h2('text') //## text
mt.h3('text') //### text
mt.h4('text') //#### text
mt.h5('text') //##### text
mt.h6('text') //###### text
mt.header('### text') //#### text - returns next header or cycles back to text
mt.link('http://example.com', 'text') //[text](http://example.com)
mt.image('http://example.com/image.png', 'text') //![text](http://example.com/image.png)
mt.ul('line1\nline2\nline3') //* line1
//* line2
//* line3
mt.ol('line1\nline2\nline3') //1. line1
//2. line2
//3. line3
mt.code('line1\nline2\nline3') // line1
// line2
// line3
mt.hr() //***
//
Need to include support for .link() and .image(). Might be a good idea to make it configurable.
MIT
FAQs
Tiny module for markdown editing.
The npm package markdown-toolset receives a total of 0 weekly downloads. As such, markdown-toolset popularity was classified as not popular.
We found that markdown-toolset 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.