markdown-it-accessible-lists

1.1.0 • Public • Published

markdown-it-accessible-lists

Adds role="list" to ol and ul elements to insure semantics aren't lost when creating custom styles with list-style: none;.

Usage

const markdownIt = require("markdown-it");
const markdownAccessibleLists = require("markdown-it-accessible-lists");

let markdownLibrary = markdownIt().use(markdownAccessibleLists);

Unordered and ordered lists will now have the attribute role="list" applied.

<ol role="list">
  ...
</ol>

<ul role="list">
  ...
</ul>

Package Sidebar

Install

npm i markdown-it-accessible-lists

Weekly Downloads

5

Version

1.1.0

License

MIT

Unpacked Size

2.59 kB

Total Files

4

Last publish

Collaborators

  • sledsworth