Skip to content

sometimeskind/node-list-markup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-list-markup

Parses text and adds HTML markup around what it thinks are lists.

Highly opinionated. At time of writing accepts the following styles of list:

 1. item
 1) item
 1 . item
 (1) item
 ( 1 ) item
 1) item
 1 ) item
 - item
 • item

Will convert the numbers into ordered-lists and glyphs into unordered-lists

##Usage

listMarkup = require('list-markup');

var simpleString = 'String to be converted into list.';
var listyString = listMarkup.addMarkup(simpleString);

##Todo

Rewite using regexpbuilder.js: https://github.com/thebinarysearchtree/regexpbuilderjs

About

Parses text and adds HTML markup around what it thinks are lists.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published