Skip to content

gitim/textile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Textile.js

Converts textile documents to HTML.

Install

$ npm install textilejs

Usage

textile = require('textilejs'); // for node, others require the file.
textile(source, { /* options */ });

Options

  • wrapBlocks boolean
    • true default wraps basic blocks in paragraph tags.
    • false disables wrapping blocks in paragraph tags.
  • highlight function function (code) { return yourHighlighter(code); }
    • Allows highlighting of code if you wish using your own custom highlighting script.
    • default no highlighting.

History

Prior names include: textiled by Yulian Kuncheff, jstextile by Christian Perfect. Both of these versions include bugs, bad coding habits and slight issues, not to knock them as without them this wouldn't exist.

With nothing in my pockets, I developed this version while sitting at Mashape offices, and some at a small quaint cafe named South Beach Cafe; Fueled by expresso and motivated by a nice little band accidentally stumbled upon through spotify called Delta Spirit

About

A Textile parser in Javascript for Node.js and Browser use.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.8%
  • HTML 24.5%
  • CSS 4.7%