# markdown-it-theme

> A markdown-it plugin for theme customization.

Latest version **0.4.0** (published 2019-12-27) · Unlicense license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2019-12-27 |
| First published | 2019-12-11 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | miaoxingsoldier |
| Maintainers | miaoxingsoldier |
| Keywords | markdown, markdown-it, markdown-it-plugin, customization, theme, class, style |

## Links

- npm: https://www.npmjs.com/package/markdown-it-theme
- Repository: https://github.com/miaoxingsoldier/markdown-it-theme
- Homepage: https://github.com/miaoxingsoldier/markdown-it-theme#readme
- Issues: https://github.com/miaoxingsoldier/markdown-it-theme/issues
- npm.io page: https://npm.io/package/markdown-it-theme

## 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

- 0.4.0 (latest) — 2019-12-27
- 0.3.0 — 2019-12-25
- 0.2.0 — 2019-12-17
- 0.1.0 — 2019-12-11

## README

# markdown-it-theme

> A [markdown-it] plugin for theme customization.

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

## Usage

> index.md

```markdown
# header
markdown-it-theme `plugin`
```

> index.js

```js
var fs = require('fs')
var plugin = require('markdown-it-theme')
var options = { theme: 'custom-md-theme' }
var md = require('markdown-it')().use(plugin, options)
var input = fs.readFileSync('index.md', 'utf-8')
var result = md.render(input)
console.log(result)
```

> Result

```html
<h1 class="custom-md-theme">header</h1>
<p class="custom-md-theme">markdown-it-theme <code class="custom-md-theme">plugin</code> </p>
```

### options

Name              | Type     | Description            | Default
------------------|----------|------------------------|-----------
`theme`           | string   | The class of html tag. | undefined
`alias`           | function | Alias class of html tag. | undefined

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