Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/slimkit/marked-plus-image
- Owner: slimkit
- License: apache-2.0
- Created: 2017-09-12T10:40:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-28T08:58:03.000Z (about 7 years ago)
- Last Synced: 2023-11-01T17:08:28.107Z (about 1 year ago)
- Topics: marked-markdown-parser
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 4
- 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 `@![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)