• Stars
    star
    210
  • Rank 181,359 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 12 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A fully featured Textile parser in JavaScript

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.

Install

$ npm install textile-js

Options

The basic interface mimics 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.

Usage

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

You can also get to the syntax tree, which uses JsonML.

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

CLI

$ textile -o hello.html
hello world
^D
$ cat hello.html
<p>hello world</p>

License

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

See LICENSE.

More Repositories

1

dateutil

A collection date utility methods for JavaScript. Compatible with Node.js or browsers.
JavaScript
41
star
2

numfmt

Full ECMA-376 number and date formatting in JavaScript
JavaScript
30
star
3

jquery-sokoban

Sōkoban implemented as a HTML progressive enhancement jQuery plugin.
JavaScript
26
star
4

textbox

Library to layout text for display on SVG or Canvas.
JavaScript
25
star
5

sokoban-skins

Liberally licenced Sokoban skins
13
star
6

mame-hiscores

[UNMAINTAINED] MAME Lua script to enable hiscore.dat support.
Lua
6
star
7

String.format

A full implementation of Python string formatting in JavaScript.
JavaScript
5
star
8

fx

Utilities for working with Excel formulas
JavaScript
5
star
9

hugs

A small JavaScript templating system. That loves you.
JavaScript
3
star
10

aggro

Simple object data transformer utility
JavaScript
3
star
11

ordla

Íslenskt afrit af vinsæla orðaleiknum Wordle
JavaScript
3
star
12

eslint-config

This is my eslint-config. There are many like it, but this one is mine.
JavaScript
3
star
13

node-flags

Scrape and serve or write Wikipedia flags as bitmaps.
JavaScript
3
star
14

Date.format

Provides PHP style date formatting for JavaScript as outlined in the PHP docs: http://php.net/date
JavaScript
2
star
15

ldml-number

Formats numbers using the Unicode formatting standard, LDML.
JavaScript
2
star
16

gettext-js

Python script to make gettext dumps from JavaScript files.
Python
2
star
17

ordavinda

A simple word game. Find as many words as possible from a given set before time runs out.
JavaScript
1
star
18

jquery-processeach

An jquery each-like function for long running operations
JavaScript
1
star
19

hugsandi-vefrit

Veftímaritið Hugsandi
CSS
1
star
20

node-geir

Yet another node.js webserver
JavaScript
1
star
21

mortgage-calculator

A dynamic mortgage calculator for an Icelandic economy
JavaScript
1
star