1.0.1 • Published 4 months ago

marked-nonbreaking-spaces v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

marked-nonbreaking-spaces

Insert any number of   non-breaking spaces into the document.

The basic token is :>. Additional spaces may be added by adding additional greater-than (>) to the sequence. :>>> would result in    . This token may be used inside a block.

Usage

const marked = require("marked");
const markedNonbreakingSpaces = require("marked-nonbreaking-spaces");

marked.use(markedNonbreakingSpaces());

const html = marked.parse(":> This is a single space.\nThis adds :>>>> four!");
console.log(html);
// <p>&nbsp; This is a single space.\nThis adds &nbsp;&nbsp;&nbsp;&nbsp; four!</p>
1.0.1

4 months ago

1.0.0

5 months ago