Skip to content

Guidelines, scripts for authoring structured, machine readable lists in plain Markdown by leveraging HTML.

Notifications You must be signed in to change notification settings

hstsethi/structured-list-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

structured-list-md

Guidelines, scripts for authoring structured, machine readable lists in plain Markdown by leveraging HTML.

Guidelines

  • The input must be valid markdown.

  • The list can be either ordered(numbered) or unordered(bulleted).

  • Description is not necessary, but if it's there, it should be preceded and followed by a new line.

  • There should not be any newline between items that do not have descriptions, else the markdown parsers will introduce additional p tag after li.

Conversions

  • li -> dt

  • p -> dd

  • ul/ol -> dl

Input Markdown Item List

- Item 1

Description of item 1. 

- Item 2
- Item 3

Intermediate HTML Item List

<ul>
<li>Item 1</li>
</ul>
<p>Description of item 1.</p>
<ul>
<li>Item 2</li>
<li>Item 3</li>
</ul>

Final HTML Definition List

<dl>
<dt>Item 1</dt>
</dl>
<dd>Description of item 1.</dd>
<dl>
<dt>Item 2</dt>
<dt>Item 3</dt>
</dl>

About

Guidelines, scripts for authoring structured, machine readable lists in plain Markdown by leveraging HTML.

Topics

Resources

Stars

Watchers

Forks