Natural Potato Magnet

    marked-plus-image

    1.0.1 • Public • Published

    marked-plus-image

    ThnkSNS+ image syntax plugin for marked markdown parser.

    Required marked .

    Syntax is @![title](id) tag.

    Install

    npm, yarn

    npm i marked-plus-image --save
    yarn add marked-plus-image

    Use

    import marked from 'marked';
    import plusImagePlugin from 'marked-plus-image';
     
    const basename = 'https://plus.io/api/v2/files';
        
    marked.setOptions({
        // ...
        basename
    });
     
    const markdownText = '...'; // The is you markdown text.
    const html = marked(
        plusImagePlugin(marked, markdownText)
    );
     

    License

    Apache-2.0

    Keywords

    none

    Install

    npm i marked-plus-image

    DownloadsWeekly Downloads

    4

    Version

    1.0.1

    License

    Apache-2.0

    Last publish

    Collaborators

    • medz