0.2.8 • Published 4 years ago

text_to_html v0.2.8

Weekly downloads
3
License
-
Repository
-
Last release
4 years ago

text_to_html

Converts ordinary text into HTML

Note

This is still in the very early stages. Beware.

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

MIT

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.13

11 years ago

0.1.12

11 years ago

0.1.11

11 years ago

0.1.10

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.0

11 years ago