1 | # Slate Transformer
|
2 |
|
3 | Use `SlateTransformer` to transform a CiceroMark DOM to/from a JSON representation for the Slate DOM (version 0.4x.x).
|
4 |
|
5 | ## Installation
|
6 |
|
7 | ```
|
8 | npm install @accordproject/markdown-slate --save
|
9 | ```
|
10 |
|
11 | ## Usage
|
12 |
|
13 | ``` javascript
|
14 | const SlateTransformer = require('@accordproject/markdown-slate').SlateTransformer;
|
15 | slateTransformer = new SlateTransformer();
|
16 | const slateValue = slateTransformer.fromMarkdown('test <variable id="foo" value="bar"/>');
|
17 | ```
|
18 |
|
19 | ## License <a name="license"></a>
|
20 | 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/.
|
21 |
|
22 | © 2017-2019 Clause, Inc.
|