Markdown

How to Use HTML dl Tag in Markdown

Various HTML tags can be used in Markdown, and this is about how to use the 'dl' tag among them. Using the Node.js package library markdown-it-deflist to enable the use of Markdown dl tags.

Shou Arisaka
1 min read
Nov 25, 2025

Various HTML tags can be used in Markdown, and this is about how to use the “dl” tag among them. Using the Node.js package library markdown-it-deflist to enable the use of Markdown dl tags.

Image

Use markdown-it-deflist to enable the use of

<

dl> tags in Markdown.

Image

markdown-it-deflist - npm

Installation

npm install markdown-it-deflist --save

content variable … Describe dl tags in Pandoc standard notation.


Term 1

:   Definition 1

Term 2 with *inline markup*

:   Definition 2

        { some code, part of Definition 2 }

    Third paragraph of definition 2.

Pandoc - Pandoc User’s Guide

main.js

var md = require('markdown-it')()
                        .use(require('markdown-it-ins'))
                         .use(require('markdown-it-deflist'))
                            .use(require('markdown-it-mark')) ;

console.log( md.render( content ) )

Output

Image

<dl>
<dt>Term 1</dt>
<dd>
<p>Definition 1</p>
</dd>
<dt>Term 2 with <em>inline markup</em></dt>
<dd>
<p>Definition 2</p>
<pre><code>  { some code, part of Definition 2 }
</code></pre>
<p>Third paragraph of definition 2.</p>
</dd>
</dl>

As above, I introduced how to use HTML dl tags in Markdown.

Share this article

Shou Arisaka Nov 25, 2025

🔗 Copy Links