JSPM

jsreport-html-to-markdown

1.0.9
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q43634F
  • License MIT

jsreport recipe converting markdown into html

Package Exports

  • jsreport-html-to-markdown

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 (jsreport-html-to-markdown) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jsreport-html-to-text

jsreport recipe transforming html to text using node package html-to-text. See the docs https://jsreport.net/learn/html-to-text

Installation

npm install jsreport-html-to-text

Usage

To use recipe in for template rendering set template.recipe=html-to-text in the rendering request.

{
  template: { content: '...', recipe: 'html-to-text', engine: '...' }
}

jsreport-core

You can apply this extension also manually to jsreport-core

var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-html-to-text')())