markdown-it-imsize
A markdown-it plugin for size-specified image markups. This plugin overloads original image renderer of markdown-it.
Usage
Enable plugin
var md = html: true linkify: true typography: true; // <-- this use(package_name) is required
Example
![test](image.png =100x200)
is interpreted as
Options
Auto fill
var md = html: true linkify: true typography: true;
will fill the width and height fields automatically if the specified image path is valid.
Therefore,
![test](image.png)
is interpreted as
where image.png
is a valid path and its size is 200 x 200.
Use with RequireJS
markdown-it-imsize
is available with bower and RequireJS. First, you can install the package with,
bower install markdown-it-imsize
Script for using markdown-it-imsize
with RequireJS is like,
;