Maniaplanet-style-js-parser

CoffeeScript (JavaScript) maniaplanet style parser

View the Project on GitHub maniaplanet/maniaplanet-style-js-parser

ManiaPlanet Style parser

JavaScript port of ManiaLib's PHP style parser.

It supports : $i, $o, $s, $w, $m, $g, $n, $<, $>, $l (for links like $l[http://maniaplanet.com]maniaplanet$l) and colors ($f20 for instance).

For instance:

Will be transformed into:
Additional options:

Build

Installation

Please check the readme on the project's home on github.

Usage

In you web applications, include the script via : <script src="http://maniaplanet.github.io/maniaplanet-style-js-parser/bin/mp-style-parser.js"></script>

Then you can use it by doing : MPStyle.Parser.toHTML('$o foo $i bar');