npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

markdown-it-dl-list

v0.1.6

Published

markdown-it plugin for colon-based definition lists (<dl>, <dt>, <dd>)

Downloads

34

Readme

markdown-it-dl-list

📘 日本語版はこちらREADME-ja.md

A markdown-it plugin that adds support for colon-based definition lists using <dl>, <dt>, and <dd>.

This plugin enables a simple and readable definition list syntax inspired by Pandoc and other Markdown variants.

Features

  • Colon-based definition list syntax
  • Supports <dl>, <dt>, and <dd>
  • Multiple definitions per term
  • Term-only entries (dt-only)
  • Nested definition lists
  • Designed to work with standard markdown-it pipelines

👉 VS Code users: Use the companion extension DL List Preview (colon-based)
to get proper <dl> rendering in the built-in Markdown preview.

Installation

npm install markdown-it-dl-list

Usage

import markdownit from "markdown-it";
import dlList from "markdown-it-dl-list";

const md = markdownit();
md.use(dlList);

const src = `
: Term
    : Definition line 1
    : Definition line 2
`;

console.log(md.render(src));

Output:

<dl>
  <dt>Term</dt>
  <dd>Definition line 1</dd>
  <dd>Definition line 2</dd>
</dl>

Syntax

Basic form

: Term
    : Definition

Multiple definitions

: Term
    : First definition
    : Second definition

Term-only (dt-only)

A term without definitions is allowed only when followed by a blank line or EOF:

: Term only

Next paragraph.

Multiline terms

Indented lines following a term are treated as part of the term:

: This is a
  multiline term
    : This is a
      multiline definition

Nested definition lists

: Outer term
    : : Inner term
          : Inner definition
    : Next definition

For the detailed definition list syntax, → Definition List Syntax (unified / remark).

Note that this document describes the syntax only. Implementation-specific behavior (such as editor preview integration) is documented in this package.

Options

type DlListOptions = {
  /** Indent (spaces) required for dd lines. Default: 4 */
  ddIndent?: number;

  /** Require at least one dd unless dt-only is followed by blank line or EOF. Default: true */
  requireDd?: boolean;

  /** Stop parsing the current dl at the first blank line after items. Default: true */
  breakOnBlankLine?: boolean;
};

Example:

md.use(dlList, {
  ddIndent: 2,
  requireDd: true,
});

What this plugin does NOT do

  • Does not modify Markdown rendering outside definition lists
  • Does not change markdown-it default paragraph behavior
  • Does not attempt to support every existing definition list syntax variant

Related projects

  • remark-dl-list A remark plugin that adds the same colon-based definition list syntax to unified / remark pipelines.

License

MIT