# markdown-it-center-text

> tag for markdown-it markdown parser.

Latest version **1.0.4** (published 2018-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install markdown-it-center-text
pnpm add markdown-it-center-text
yarn add markdown-it-center-text
bun add markdown-it-center-text
```

## 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.4 |
| Published | 2018-07-13 |
| First published | 2016-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Jay |
| Maintainers | jay-hodgson |
| Keywords | markdown-it-plugin, markdown-it, markdown, center, text |

## Links

- npm: https://www.npmjs.com/package/markdown-it-center-text
- Repository: https://github.com/jay-hodgson/markdown-it-center-text
- Issues: https://github.com/jay-hodgson/markdown-it-center-text/issues
- npm.io page: https://npm.io/package/markdown-it-center-text

## 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.4 (latest) — 2018-07-13
- 1.0.3 — 2016-02-26
- 1.0.2 — 2016-02-24
- 1.0.1 — 2016-02-23
- 1.0.0 — 2016-02-23

## README

# markdown-it-center-text

[![Build Status](https://img.shields.io/travis/jay-hodgson/markdown-it-center-text/master.svg?style=flat)](https://travis-ci.org/jay-hodgson/markdown-it-center-text)
[![NPM version](https://img.shields.io/npm/v/markdown-it-center-text.svg?style=flat)](https://www.npmjs.org/package/markdown-it-center-text)
[![Coverage Status](https://img.shields.io/coveralls/jay-hodgson/markdown-it-center-text/master.svg?style=flat)](https://coveralls.io/r/jay-hodgson/markdown-it-center-text?branch=master)

> Center text plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.

__v1.+ requires `markdown-it` v4.+, see changelog.__

`->Centered Text<-` => `<div class="text-align-center">Centered Text</div>`


## Install

node.js, browser:

```bash
npm install markdown-it-center-text --save
bower install markdown-it-center-text --save
```

## Use

```js
var md = require('markdown-it')()
            .use(require('markdown-it-center-text'));

md.render('->Centered Text<-') // => '<div class="text-align-center">Centered Text</div>'

```

The widgetparams can be used to determine what kind of html widget should be rendered in the output container.

_Differences in browser._ If you load script directly into the page, without
package system, module will add itself globally as `window.markdownitCentertext`.


## License
[MIT](https://github.com/jay-hodgson/markdown-it-center-text/blob/master/LICENSE)

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