You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@accordproject/markdown-html

Package Overview
Dependencies
4
Maintainers
3
Versions
980
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accordproject/markdown-html

Transform CiceroDOM to HTML


Version published
Maintainers
3
Created

Readme

Source

HTML Transformer

Use HtmlTransformer to transform a CiceroMark DOM to/from an HTML String.

Installation

npm install @accordproject/markdown-html --save

Usage

const CiceroMarkTransformer = require('@accordproject/markdown-cicero').CiceroMarkTransformer;
const HtmlTransformer = require('@accordproject/markdown-html').HtmlTransformer;
htmlTransformer = new HtmlTransformer();
ciceroTransformer = new CiceroMarkTransformer();
const json = ciceroTransformer.fromMarkdown(markdownText, 'json');
const html = htmlTransformer.toHtml(json);

Using in web apps with webpack

If using this module in a web app with webpack, you must add the following to your webpack config in the plugins array.

new webpack.IgnorePlugin(/jsdom$/)

License

Accord Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Accord Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.

© 2017-2019 Clause, Inc.

Keywords

FAQs

Package last updated on 19 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc