A markdown-it plugin to create GitHub-style task lists
Installations
npm install markdown-it-task-lists
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
9.3.0
NPM Version
5.6.0
Score
99.4
Supply Chain
92.4
Quality
75.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
revin
Download Statistics
Total Downloads
13,385,092
Last Day
27,368
Last Week
124,692
Last Month
540,880
Last Year
4,982,559
GitHub Statistics
97 Stars
41 Commits
33 Forks
3 Watching
30 Branches
3 Contributors
Bundle Size
1.83 kB
Minified
784.00 B
Minified + Gzipped
Package Meta Information
Latest Version
2.1.1
Package Id
markdown-it-task-lists@2.1.1
Size
6.39 kB
NPM Version
5.6.0
Node Version
9.3.0
Publised On
06 Mar 2018
Total Downloads
Cumulative downloads
Total Downloads
13,385,092
Last day
-1.4%
27,368
Compared to previous day
Last week
-14.2%
124,692
Compared to previous week
Last month
15.3%
540,880
Compared to previous month
Last year
88.6%
4,982,559
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
5
markdown-it-task-lists
A markdown-it plugin to create GitHub-style task lists
What it does
- Builds task/todo lists out of markdown lists with items starting with
[ ]
or[x]
. - Nothing else
Why is this useful?
When you have markdown documentation with checklists, rendering HTML checkboxes out of the list items looks nicer than the raw square brackets.
Installation
1npm install markdown-it-task-lists
Usage
Use it the same as a normal markdown-it plugin:
1var md = require('markdown-it'); 2var taskLists = require('markdown-it-task-lists'); 3 4var parser = md().use(taskLists); 5 6var result = parser.render(...); // markdown string containing task list items
The rendered checkboxes are disabled; to change this, pass a truthy value into
the enabled
property of the plugin options:
1var parser = md().use(taskLists, {enabled: true});
If you'd like to wrap the rendered list items in a <label>
element for UX
purposes, pass a truthy value to the label
property of the plugin options:
1var parser = md().use(taskLists, {label: true});
To add the label after the checkbox pass a truthy value to labelAfter
property:
1var parser = md().use(taskLists, {label: true, labelAfter: true});
Note: This option does require the label
option to be truthy.
The options can be combined, of course.
Browser Usage
If you use one of the versions of this module available in dist/
directly in
a browser by including it with a <script>
element, it will be available
globally in window.markdownitTaskLists
.
Tests
1npm install 2npm test
License
ISC
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: ISC License: LICENSE:0
Reason
Found 4/23 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 13 are checked with a SAST tool
Reason
22 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw
- Warn: Project is vulnerable to: GHSA-hc9w-4p87-j549
- Warn: Project is vulnerable to: GHSA-wg6g-ppvx-927h
- Warn: Project is vulnerable to: GHSA-p28h-cc7q-c4fg
- Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9
- Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2
- Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-h726-x36v-rx45
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7
Score
1.9
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to markdown-it-task-lists
@hedgedoc/markdown-it-task-lists
A markdown-it plugin to create GitHub-style task lists
@hedgedoc/markdown-it-plugins
A collection of used and modified markdown-it plugins.
markdown-it-task-checkbox
A markdown-it plugin to create GitHub-style task lists
@cnblogs/markdown-it-task-lists
A markdown-it plugin to create GitHub-style task lists