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: 9 months ago
JSON representation
ThnkSNS+ image syntax plugin for marked markdown parser.
- Host: GitHub
- URL: https://github.com/slimkit/marked-plus-image
- Owner: slimkit
- License: apache-2.0
- Created: 2017-09-12T10:40:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-28T08:58:03.000Z (over 8 years ago)
- Last Synced: 2025-09-15T06:48:28.694Z (9 months ago)
- Topics: marked-markdown-parser
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# marked-plus-image
> ThnkSNS+ image syntax plugin for marked markdown parser.
Required `marked` .
Syntax is `@` 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)