JSPM

marked-hard-breaks

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q35568F
  • License MIT

Hard Paragraph Breaks for Marked.js

Package Exports

  • marked-hard-breaks
  • marked-hard-breaks/lib/index.cjs
  • marked-hard-breaks/lib/index.umd.js
  • marked-hard-breaks/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (marked-hard-breaks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

marked-hard-breaks

Force any number blank lines between paragraphs.

Inserting blanks

This extensions expects a : at the start of a line. Multiple colons are executed as multiple lines.

Usage

const marked = require("marked");
const markedHardBread = require("marked-justified-paragraphs");

marked.use(markedJustifiedParagraphsHardBreaks());

const html = marked.parse("Hello\n:::New paragraph");
console.log(html);
//<p>Hello</p>\n<br><br><br>\n<p>New paragraph</p>\n