Skip to content

farvardin/t2tagged

 
 

Repository files navigation

marked

A full-featured txt2tags parser and compiler, written in JavaScript. Built for speed.

Install

TODO

Usage

Minimal usage:

js var t2t = require('t2tagged'); console.log(t2t('I am using __markdown__.')); // Outputs: <p>I am using <strong>markdown</strong>.</p>

Example setting options with default values:

```js var t2t = require('t2tagged'); t2t.setOptions({ renderer: new t2t.Renderer(), gfm: true, tables: true, breaks: false, pedantic: false, sanitize: true, smartLists: true, smartypants: false });

console.log(t2t('I am using markdown.')); ```

Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work. </legalese>

License

Copyright (c) 2011-2014, Christopher Jeffrey. (MIT License)

See LICENSE for more info.

About

A txt2tags parser and compiler. Built for speed. See https://github.com/farvardin/txt2tagsjs instead

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%