# markdown-it-contained-image

> Plugin for creating images nested in HTML elements for markdown-it markdown parser.

Latest version **1.0.1** (published 2017-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install markdown-it-contained-image
pnpm add markdown-it-contained-image
yarn add markdown-it-contained-image
bun add markdown-it-contained-image
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-08-04 |
| First published | 2017-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | andreagentili |
| Keywords | markdown-it-plugin, markdown-it, markdown |

## Links

- npm: https://www.npmjs.com/package/markdown-it-contained-image
- Repository: https://github.com/andreagentili/markdown-it-contained-image
- Issues: https://github.com/andreagentili/markdown-it-contained-image/issues
- npm.io page: https://npm.io/package/markdown-it-contained-image

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-08-04
- 1.0.0 — 2017-08-04

## README

# markdown-it-contained-image

> Plugin for creating images nested in HTML elements for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.

Derived from https://github.com/hhhonzik/markdown-it-relativelink.

## Install

node.js, browser:

```sh
npm install markdown-it-contained-image --save
bower install markdown-it-contained-image --save
```

## Use

```js
var MarkdownIt = require('markdown-it');
var MarkdownItContainedImages = require('markdown-it-contained-image');

var md = new MarkdownIt();
md.use(MarkdownItContainedImages());

md.render('~[caption](url)|base1,base2|') // => '<p><div class="base1"><div class="base2"><img src="url" alt="caption"></div></div></p>'
```

---
_Source: https://npm.io/package/markdown-it-contained-image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
