1.0.1 • Published 7 years ago

marked-plus-image v1.0.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

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

1.0.1

7 years ago

1.0.0

7 years ago