Skip to content

sledsworth/markdown-it-accessible-lists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published