How to use @accordproject/markdown-common - 1 common examples

To help you get started, we’ve selected a few @accordproject/markdown-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github accordproject / cicero / packages / cicero-core / src / parsermanager.js View on Github external
roundtripMarkdown(text) {
        // Roundtrip the grammar through the Commonmark parser
        const commonMarkTransformer = new CommonMarkTransformer({ noIndex: true });
        const concertoAst = commonMarkTransformer.fromMarkdown(text);
        return commonMarkTransformer.toMarkdown(concertoAst);
    }

@accordproject/markdown-common

A framework for transforming markdown

Apache-2.0
Latest version published 21 days ago

Package Health Score

79 / 100
Full package analysis

Popular @accordproject/markdown-common functions