@accordproject/markdown-transforms
API for transforming markdown data
Last updated 4 months ago by jsimeon .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @accordproject/markdown-transforms 
SYNC missed versions from official npm registry.

Markdown Transform API

High-level API to transform markdown into different formats.

Installation

npm install -g @accordproject/markdown-transform

Usage

const transform = require('@accordproject/markdown-transform').transform;

// convert a markdown string to an html string
//   first argument is the markdown string to be converted
//   second argument is the source format
//   third argument is an array of destination formats to pass through
const htmlString = transform(markdownString, 'markdown', ['html']);
console.log(htmlString);

Transformation Graph

You can generate a PlantUML state diagram for the supported transformations using the followning code:

const generateTransformationDiagram = require('@accordproject/markdown-transform').generateTransformationDiagram;
const plantUMLStateDiagram = generateTransformationDiagram();

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.

Current Tags

  • 0.10.5-20200415103550                                ...           latest (4 months ago)
  • 0.10.5-20200416160535                                ...           unstable (4 months ago)

16 Versions

  • 0.10.5-20200416160535                                ...           4 months ago
  • 0.10.5-20200415174249                                ...           4 months ago
  • 0.10.5-20200415173453                                ...           4 months ago
  • 0.10.5-20200415153311                                ...           4 months ago
  • 0.10.5-20200415152621                                ...           4 months ago
  • 0.10.5-20200415135520                                ...           4 months ago
  • 0.10.5-20200415134658                                ...           4 months ago
  • 0.10.5-20200415133619                                ...           4 months ago
  • 0.10.5-20200415133419                                ...           4 months ago
  • 0.10.5-20200415132715                                ...           4 months ago
  • 0.10.5-20200415120717                                ...           4 months ago
  • 0.10.5-20200415120410                                ...           4 months ago
  • 0.10.5-20200415120206                                ...           4 months ago
  • 0.10.5-20200415113650                                ...           4 months ago
  • 0.10.5-20200415113537                                ...           4 months ago
  • 0.10.5-20200415103550                                ...           4 months ago
Downloads
Today 16
This Week 16
This Month 16
Last Day 0
Last Week 0
Last Month 32
Dependencies (11)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |