# text_to_html

> Convert text to HTML

Latest version **0.2.8** (published 2020-09-25) · 0 weekly downloads

## Install

```sh
npm install text_to_html
pnpm add text_to_html
yarn add text_to_html
bun add text_to_html
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.8 |
| Published | 2020-09-25 |
| First published | 2014-05-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 21.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nathan Rugg |
| Maintainers | nmrugg |

## Links

- npm: https://www.npmjs.com/package/text_to_html
- npm.io page: https://npm.io/package/text_to_html

## Dependencies (2)

- [girdle](https://npm.io/package/girdle.md) =0.1.15
- [simple_supplant](https://npm.io/package/simple_supplant.md) =1.0.0

## Recent versions

- 0.2.8 (latest) — 2020-09-25
- 0.2.7 — 2020-09-25
- 0.2.6 — 2015-02-18
- 0.2.5 — 2015-02-04
- 0.2.4 — 2015-02-04
- 0.2.3 — 2015-02-04
- 0.2.2 — 2015-02-04
- 0.2.1 — 2015-02-01
- 0.2.0 — 2015-01-31
- 0.1.19 — 2015-01-31
- 0.1.18 — 2015-01-30
- 0.1.17 — 2015-01-30
- 0.1.16 — 2015-01-29
- 0.1.15 — 2015-01-28
- 0.1.14 — 2014-10-31
- … 11 more at https://npm.io/package/text_to_html/versions

## README

text_to_html
====

Converts ordinary text into HTML

Note
---
This is still in the very early stages. <strong>Beware</strong>.


Node.js install
---

`npm install text_to_html`

Guidelines
---

```
One new line is converted to a <br>.

Two are converted to a <p>

Three or more are treated like a page break: <p style="page-break-before: always"</p>

Images are added like so on a single line:

    [path.jpg]
    Some text below the image.

Images can also be inlined into text:

    [image1.jpg right]
    [image2.jpg left]
    This text will be in between the images.


Optional data can be added to a paragraph:

    {"class":"special_class"}The paragraph text goes here.

Properties can be added to an image too:

    {"height":5}[image.png]
    
```

Descriptive properties:
---
At the very beginning, properties can be added to describe the document.
```
{
    "key1": "value1",
    "key2": "value2"
}
```

These properties will be returned for further post processing if desired.

License
---

<a href="http://nate.mit-license.org/">MIT</a>

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