@emdaer/plugin-image

3.2.31 • Public • Published

@emdaer/plugin-image · Travis Documented with emdaer Maintained with lerna

An emdaer plugin that renders HTML img elements

Usage

@emdaer/plugin-image is an emdaer plugin – see the emdaer monorepo for more information

Documentation

Example

emdaer

Usage in README

<!--emdaer-p
  - '@emdaer/plugin-image'
  - src: hero.svg
    alt: emdaer
    align: center
-->

imagePlugin

Renders HTML img elements.

Parameters

  • options any
    • options.src string The image URL.
    • options.alt string? The alternative text describing the image.
    • options.align ("left" | "center" | "right")? The alignment of the image with respect to its surrounding context.
    • options.width string? The intrinsic width of the image in pixels.
    • options.height string? The intrinsic height of the image in pixels.

Examples

<!--emdaer-p
  - '@emdaer/plugin-image'
  - src: hero.svg
    alt: emdaer
    align: center
-->

Returns Promise<string> The image element

Readme

Keywords

Package Sidebar

Install

npm i @emdaer/plugin-image

Weekly Downloads

158

Version

3.2.31

License

MIT

Unpacked Size

35.5 kB

Total Files

9

Last publish

Collaborators

  • beautyhammer
  • emdaerbot
  • flipactual
  • infiniteluke