2.1.1 • Published 4 years ago

textile-js v2.1.1

Weekly downloads
1,649
License
MIT
Repository
github
Last release
4 years ago

h1. textile.js

Attempt at an implementation of fully featured Textile parser in JavaScript that runs reasonably fast and mostly avoids outputting broken HTML.

Give it a go in "a live textile web editor":http://borgar.github.com/textile-js/.

h2. Install

bc. $ npm install textile-js

h2. Options

The basic interface mimics "marked":https://github.com/chjj/marked, the popular markdown parser. So if you use that in your project then you can support Textile as well with minimal effort.

Currently, the only supported option is @breaks@ which can be used to enable/disable the default behavior of line-breaking single newlines within blocks.

h2. Usage

bc. console.log( textile( "I am using textile." ) );

You can also get to the syntax tree, which uses "JsonML":http://www.jsonml.org/.

bc. var jsonml = textile.parse( text ); console.log( jsonml );

h2. CLI

bc. $ textile -o hello.html hello world ^D $ cat hello.html

h2. License

Copyright (c) 2012, Borgar Þorsteinsson (MIT License).

See LICENSE.

2.1.1

4 years ago

2.1.0

4 years ago

2.0.5

4 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

12 years ago