Socket
Socket
Sign inDemoInstall

markdown-it-task-lists

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-task-lists

A markdown-it plugin to create GitHub-style task lists


Version published
Weekly downloads
100K
decreased by-7.14%
Maintainers
1
Weekly downloads
 
Created

What is markdown-it-task-lists?

The markdown-it-task-lists package is a plugin for the markdown-it Markdown parser that allows you to create GitHub-style task lists. This plugin converts Markdown task list syntax into HTML checkboxes, making it easy to create interactive task lists in your Markdown documents.

What are markdown-it-task-lists's main functionalities?

Basic Task List

This feature allows you to create a basic task list with unchecked and checked items. The code sample demonstrates how to use the markdown-it-task-lists plugin to render a Markdown task list into HTML.

const md = require('markdown-it')();
const taskLists = require('markdown-it-task-lists');
md.use(taskLists);

const result = md.render('- [ ] Task 1\n- [x] Task 2');
console.log(result);

Customizable Task List

This feature allows you to customize the task list rendering. The code sample shows how to enable labels and configure their position using the plugin options.

const md = require('markdown-it')();
const taskLists = require('markdown-it-task-lists');
md.use(taskLists, { enabled: true, label: true, labelAfter: false });

const result = md.render('- [ ] Task 1\n- [x] Task 2');
console.log(result);

Other packages similar to markdown-it-task-lists

Keywords

FAQs

Package last updated on 06 Mar 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc