Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/slimkit/marked-plus-image

ThnkSNS+ image syntax plugin for marked markdown parser.
https://github.com/slimkit/marked-plus-image

marked-markdown-parser

Last synced: 4 days ago
JSON representation

ThnkSNS+ image syntax plugin for marked markdown parser.

Awesome Lists containing this project

README

        

# marked-plus-image

> ThnkSNS+ image syntax plugin for marked markdown parser.

Required `marked` .

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

## Install

npm, yarn

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

## Use

```js
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](LICENSE)