0.10.5-20200415103550 • Published 6 years ago
@accordproject/markdown-transforms v0.10.5-20200415103550
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.
0.10.5-20200416160535
6 years ago
0.10.5-20200415174249
6 years ago
0.10.5-20200415153311
6 years ago
0.10.5-20200415173453
6 years ago
0.10.5-20200415152621
6 years ago
0.10.5-20200415134658
6 years ago
0.10.5-20200415133419
6 years ago
0.10.5-20200415132715
6 years ago
0.10.5-20200415133619
6 years ago
0.10.5-20200415120410
6 years ago
0.10.5-20200415120717
6 years ago
0.10.5-20200415135520
6 years ago
0.10.5-20200415113650
6 years ago
0.10.5-20200415120206
6 years ago
0.10.5-20200415113537
6 years ago
0.10.5-20200415103550
6 years ago