1.0.1 • Published 4 months ago
marked-nonbreaking-spaces v1.0.1
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> This is a single space.\nThis adds four!</p>