JavaScript package to parse ManiaPlanet styles. This is used in Trackmania.io.
It supports : $i, $o, $s, $w, $m, $g, $n, $<, $>, $l (for links like $l[http://maniaplanet.org]maniaplanet$l) and colors ($f20 for instance).
import Parser from 'maniaplanet-style';
Parser.toHTML('$f00Red');Some tests are included. Simply run pnpm test to run them.
This is forked from Nadeo's official package. That package has dated a bit and was built on CoffeeScript; this package avoids that altogether using modern Javascript based on the compiled Coffeescript. There are 0 dependencies and 0 dev dependencies.