Giter VIP home page Giter VIP logo

maniaplanet-style-js-parser's People

Contributors

magnetik avatar minigod avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

minigod

maniaplanet-style-js-parser's Issues

Problème de parsing des liens mal écrit

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.

text '$' throws error

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

Parse error

$fà$oplop$o give a green and blod plop instead of a red simple oplop

$000 is parsed to #0

Input: $000Black $gand $fffwhite
Output: <span style="color: #0;">Black </span>and <span style="color: #ffffff;">white</span>

< > does not works properly

$f20Some red text,$&lt;$o a little bold, $>$l[http://magnetik.org]and a link$l testt$f00a$q sdqsdd
The text is bold and grey but must it must be bold and red.
$f20Some red text,$&lt;$o a little $zbold, $&gt;$l[http://magnetik.org]and a link$l testt$f00a$q sdqsdd
In this exemple "bold, " should be normal sized but still red

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.