list-markup

0.0.3 • Public • Published

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);

Package Sidebar

Install

npm i list-markup

Weekly Downloads

0

Version

0.0.3

License

Apache, Version 2.0

Last publish

Collaborators

  • tomruttle