hexo-tag-img

1.0.2 • Public • Published

hexo-tag-img

NPM Version NPM Downloads LICENSE Build Status Coverage Status dependencies Status devDependencies Status

Inserts an image with specified size.

This is a Hexo image tag plugin extension. After installing this plugin, the original img tag plugin will be replaced by this tag plugin.

Installation

npm install --save hexo-tag-img

Syntax

Inserts an image with specified size.

{% img [class names] /path/to/image [width] [height] "title text" "alt text" %}
{% image [class names] /path/to/image [width] [height] 'title text' 'alt text' %}
  • ', " symbols are allowed in title and alt.
  • title and alt must be quoted with " or '.
  • For security concerns, the value of attributes will be escaped.

Syntax of the Original Version

Inserts an image with specified size. See more

{% img [class names] /path/to/image [width] [height] "title text 'alt text'" %}
{% image [class names] /path/to/image [width] [height] "title text 'alt text'" %}

Issues of this version

License

Copyright (c) 2019 dailyrandomphoto. Licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i hexo-tag-img

Weekly Downloads

14

Version

1.0.2

License

MIT

Unpacked Size

6.47 kB

Total Files

6

Last publish

Collaborators

  • dailyrandomphoto