eternagame / HTML-Chat

HTML5 implementation of chat to replace the legacy Flash-based implementation
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

Text formatting #5

Open luxaritas opened 7 years ago

luxaritas commented 7 years ago

Need to look into the correct IRCv3 spec to do this (if it exists), I know some clients use control characters (though not necessarily for all things listed here), may possibly be a post-flash item depending on how compatibility will work. Probably want to use markdown to write it before it goes over the wire at least, but there are a few flavors available.

luxaritas commented 7 years ago

See: http://modern.ircdocs.horse/formatting.html

luxaritas commented 7 years ago

Some of this can be implemented with the Flash chat by simply taking advantage of the currently available HTML formatting (<font>, <a>, <b>, <i>, <u>, <li>, <img>, and <br> (on it's own message), as well as CSS styling I know exist currently)

luxaritas commented 7 years ago

Correction, <br> does not do anything

luxaritas commented 7 years ago

Thinking about using this markdown parser: https://github.com/evilstreak/markdown-js

Should use the standard IRC control characters over the wire, but this would be a good for everything else. This will probably be a post-Flash thing, since we are actually expecting to replace Flash chat in the relatively near future. Assigning it to the rewrite milestone since I think it would fit well with the infrastructure changes.

luxaritas commented 7 years ago

Started this in 7a40759, though without the block-level items, without images, and needing some slight eventual adjustment.

Also: Would probably be good to document these capabilities