markdown-it-images-preview
A markdown-it plugin to preview local images.
Last updated 7 years ago by chenxchen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install markdown-it-images-preview 
SYNC missed versions from official npm registry.

markdown-it-images-preview

A markdown-it plugin to preview local images.

Install

npm install markdown-it-images-preview --save

Use

var md = require('markdown-it')();
var miip = require('markdown-it-images-preview');
md.use(miip);

how to add image:

md.image_add('./123', file_binary);
// file_binary = "data:image/png;base64,iVBORw0KGgoA......"

how to preview image:

md.render('![image](./123)');

how to delete image:

md.image_del('./123');

Current Tags

  • 1.0.1                                ...           latest (7 years ago)

2 Versions

  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |