magnetik / maniaplanet-style-js-parser Goto Github PK
View Code? Open in Web Editor NEWCoffeeScript (JavaScript) maniaplanet style parser
License: GNU Lesser General Public License v3.0
CoffeeScript (JavaScript) maniaplanet style parser
License: GNU Lesser General Public License v3.0
Should use something like : http://www.plexical.com/blog/2012/01/25/writing-coffeescript-for-browser-and-nod/
Un joueur a écrit son nom comme ça : $l[www.clan-nuitblanche.org]$fff$l $oD R i $F01; $fff Mix?
Le $l[url]$fff fait crash le parseur, car il y a un $fff tout de suite après le lien. Il faudrait une validation au cas ou quelqu'un fait cette gaffe.
J'ai tenté un fix, mais je ne m'y connais pas assez.
MPStyle.Parser.toHTML('$');
gives
Uncaught TypeError: Cannot call method 'toLowerCase' of undefined mp-style-parser.js:175
MPStyle.Parser.Parser.parse mp-style-parser.js:175
(anonymous function) mp-style-parser.js:153
MPStyle.Parser.Parser.toHTML
$fà$oplop$o give a green and blod plop instead of a red simple oplop
Links formatted like $l...$l
do not get parsed correctly.
They result in plainly undefined
, unlike $l[..]..$l
.
Input: $000Black $gand $fffwhite
Output: <span style="color: #0;">Black </span>and <span style="color: #ffffff;">white</span>
When string contains a dollar to be printed (using $$) everything before is stripped out
The text is bold and grey but must it must be bold and red.
In this exemple "bold, " should be normal sized but still red
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.