# markdown-it-highlighted

> Whether code was highlighted during markdown-it rendering.

Latest version **1.0.1** (published 2015-05-25) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install markdown-it-highlighted
pnpm add markdown-it-highlighted
yarn add markdown-it-highlighted
bun add markdown-it-highlighted
```

## 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 | 2015-05-25 |
| First published | 2015-03-17 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Valérian Galliat |
| Maintainers | valeriangalliat |
| Keywords | markdown-it-plugin |

## Links

- npm: https://www.npmjs.com/package/markdown-it-highlighted
- Repository: https://github.com/valeriangalliat/markdown-it-highlighted
- Issues: https://github.com/valeriangalliat/markdown-it-highlighted/issues
- npm.io page: https://npm.io/package/markdown-it-highlighted

## 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) — 2015-05-25
- 1.0.0 — 2015-03-17

## README

# markdown-it-highlighted [![npm version](http://img.shields.io/npm/v/markdown-it-highlighted.svg?style=flat-square)](https://www.npmjs.org/package/markdown-it-highlighted)

> Whether code was highlighted during [markdown-it] rendering.

[markdown-it]: https://github.com/markdown-it/markdown-it

Usage
-----

```js
const md = require('markdown-it')({ highlight: yourHighlighter })
  .use(require('markdown-it-highlighted'))

const env = {}

md.render('```js\nconsole.log(42)\n```', env)
env.highlighted === true // Assuming your highlighter handled the code.

md.render('# Hello, world!', env)
env.highlighted === false
```

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