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.
org.webjars.bower:markdown-it-checkbox
Advanced tools
Plugin to create checkboxes for markdown-it markdown parser.
This plugin allows to create checkboxes for tasklists as discussed here.
node.js, browser:
npm install markdown-it-checkbox --save
bower install markdown-it-checkbox --save
var md = require('markdown-it')()
.use(require('markdown-it-checkbox'));
md.render('[ ] unchecked') // =>
// <p>
// <input type="checkbox" id="checkbox0">
// <label for="checkbox0">unchecked</label>
// </p>
md.render('[x] checked') // =>
// <p>
// <input type="checkbox" id="checkbox0" checked="true">
// <label for="checkbox0">checked</label>
// </p>
Differences in browser. If you load script directly into the page, without
package system, module will add itself globally as window.markdownitCheckbox
.
var md = require('markdown-it')()
.use(require('markdown-it-checkbox'),{
divWrap: true,
divClass: 'cb',
idPrefix: 'cbx_'
});
md.render('[ ] unchecked') // =>
// <p>
// <div classname="cb">
// <input type="checkbox" id="cbx_0">
// <label for="cbx_0">unchecked</label>
// </div>
// </p>
Boolean
false
wrap div arround checkbox. this makes it possible to use it for example with Awesome Bootstrap Checkbox.
String
checkbox
classname of div wrapper. will only be used if divWrap
is enanbled.
String
checkbox
the id of the checkboxs input contains the prefix and an incremental number starting with 0
. i.e. checkbox1
for the 2nd checkbox.
MIT License © 2015 Markus Cecot
FAQs
WebJar for markdown-it-checkbox
We found that org.webjars.bower:markdown-it-checkbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.