New Patch, Merge?

    @accordproject/markdown-template

    0.16.5 • Public • Published

    TemplateMark Transform

    This package extends CommonMark to introduce Accord Project grammar support with:

    1. Clause definitions
    2. Variable definitions
    3. Formulas

    Use TemplateMarkTransform to map from CommonMark to TemplateMark DOM nodes.

    Installation

    npm install @accordproject/markdown-template --save
    

    Usage

    const TemplateMarkTransformer = require('@accordproject/markdown-template').TemplateMarkTransformer;
    const ModelLoader = require('@accordproject/concerto-core').ModelLoader;
    
    const modelManager = await ModelLoader.loadModelManager(null, parameters.ctoFiles);
    const templateMarkTransformer = new TemplateMarkTransformer();
    
    return templateMarkTransformer.fromMarkdownTemplate({ fileName:parameters.inputFileName, content:input }, modelManager, templateKind, options);

    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.

    Install

    npm i @accordproject/markdown-template

    DownloadsWeekly Downloads

    1,507

    Version

    0.16.5

    License

    Apache-2.0

    Unpacked Size

    2.14 MB

    Total Files

    54

    Last publish

    Collaborators

    • mttrbrts
    • petrgazarov
    • dselman
    • jsimeon
    • irmerk
    • dianalease