Skip to content

slimkit/marked-plus-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ThnkSNS+ image syntax plugin for marked markdown parser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published