Commit Graph

41 Commits

Author SHA1 Message Date
Lorenz Hübschle-Schneider f10a97659d codify: also match triple backticks
fixes issues with people using ```large code-blocks inline```
2019-08-19 13:57:54 +02:00
Lorenz Hübschle-Schneider fd40cc1593 codify: only match if preceded by whitespace
(or at the start of the line).

Fixes #1058
2019-08-19 13:22:37 +02:00
Serafeim Papastefanos 94ad3b8b51 Improve regex to avoid slicing 2019-07-04 14:44:34 +03:00
Serafeim Papastefanos 1717587587 Small codify improvements 2019-07-04 14:10:41 +03:00
Serafeim Papastefanos 98cebb5b33 Improve behavior with links 2019-07-04 08:45:13 +03:00
Serafeim Papastefanos 8067e3973e Fix linting errors 2019-07-03 10:20:14 +03:00
Serafeim Papastefanos 29c6cc1e82 Add a simple codify filter 2019-07-03 10:01:05 +03:00
Robert Scullin 2b4ca93cf9 Don't linkify hostnames in join/part messages. 2019-04-12 22:59:22 -04:00
Lorenz Hübschle-Schneider 539f892e8e Merge pull request #922 from glowing-bear/buffer-jump
Implement Alt+J buffer jump like in WeeChat
2017-05-14 20:13:15 +02:00
Lorenz Hübschle-Schneider 56d190ab5c Improve documentation & cordova checks 2017-04-28 12:50:51 +02:00
Lorenz Hübschle-Schneider 8ba2b1acf6 cordova integration: small fixups 2017-04-19 14:55:48 +02:00
Alice Jenkinson d87f274c73 Hide some things on Cordova, fix links 2017-04-19 14:46:43 +02:00
Lorenz Hübschle-Schneider 22cb962e63 jumpkeys: filter on entry of first digit
not quite sure whether I like changing the sort order
2017-03-18 16:33:54 +01:00
Tobias Theuer 811e76d443 Jump to any buffer (up to 99) with Alt+J followed by 2 digits. 2017-03-18 16:33:54 +01:00
Lorenz Hübschle-Schneider b8854a287a Switch math rendering to KaTeX 2016-04-03 15:26:14 +02:00
kurros dfffbeec46 optimize what gets passed to emojione.unicodeToImage 2016-01-02 12:14:48 -05:00
Hannu Hartikainen b0f4ee4413 fix #688 and provide a unit test 2015-12-01 21:31:12 +02:00
Hannu Hartikainen d1176a5b2b disallow nested links in DOMfilter (fixes #680) 2015-11-28 17:04:57 +02:00
Peter Elmers febbb3ffdb Re-implement click to join functionality.
Clicking channel names to join broke because of angular issue 9515.
Reimplement the functionality by binding the scope.openBuffer method to
the window and calling it from an onclick handler for channel name
anchors.
2015-06-11 09:10:23 -07:00
Lorenz Hübschle-Schneider cfad82ec3e Properly fix #622 by escaping input into DOM filters 2015-06-08 23:35:18 +02:00
Lorenz Hübschle-Schneider bdb968d3af More strict escaping
Thanks, @nathan0!

Fixes #622
2015-06-08 22:19:11 +02:00
Tor Hveem 9b2a527cb7 Limit prefix parts to at most 25 chars 2015-03-26 14:41:19 +01:00
Tor Hveem 36ae273460 check that emojione is defined before usage 2015-03-23 15:09:02 +01:00
Tor Hveem f042f729e1 switch from twitter's emoji lib to emojione 2015-03-21 16:43:46 +01:00
Lorenz Hübschle-Schneider be8ab42b7c Make MathJax a setting and load it only if enabled 2015-03-21 12:45:45 +01:00
Lorenz Hübschle-Schneider 5740c647d6 Basic MathJax hackery 2015-03-21 12:45:45 +01:00
Lorenz Hübschle-Schneider f125c43ccb Adds emoji support using Twitter's twemoji 2015-01-03 18:29:59 +01:00
David Cormier 8eda79e2f3 Merge pull request #527 from glowing-bear/inline-colour-rgb
Add inline colour support for rgb(12,34,56) / rgba(1,2,3,0.4) colours
2015-01-03 10:41:04 -05:00
Lorenz Hübschle-Schneider 0c20484b5a Add inline colour support for rgb(12,34,56) / rgba(1,2,3,0.4) colours
Also improve the regexes
2014-12-30 21:06:17 +01:00
Lorenz Hübschle-Schneider 8a740b765a Fix DOMfilter when replacing multiple occasions
Previously, it would sometimes forget things at the end
2014-12-30 20:23:32 +01:00
Lorenz Hübschle-Schneider 1478b611da Properly escape HTML entities in irclinky filter
Fixes #525
2014-12-30 18:22:20 +01:00
Lorenz Hübschle-Schneider 82fc20ed0d Allow % and ~ in front of channel names as well (irclinky)
Those are IRC modifiers, we want /whois output to be clickable
2014-12-20 20:10:33 +01:00
Lorenz Hübschle-Schneider 1f601e56c8 Fix linkification target
The target attribute was passed to the wrong filter
2014-11-06 16:31:31 +01:00
Lorenz Hübschle-Schneider 0bc7571217 Fix conflicts between URL/email and irc channel linkification
URL/email links take priority over IRC channel links with this filter order.
2014-11-06 13:55:33 +01:00
Tor Hveem 1dc32fd847 Merge pull request #483 from glowing-bear/key-overlays
Show quick access keys on Alt keypress
2014-10-28 01:24:11 +01:00
Lorenz Hübschle-Schneider d95abdd0df Fix inline colour filter by applying to text nodes only
this requires traversing the line's DOM and manipulating things there
2014-10-27 21:54:38 +01:00
Ailin Nemui 9827710736 Support narrowing buffer selection with Alt+0-9 after using Alt+g or when onlyUnread is enabled, and show numeric overlays for Alt+0-9 keys on the buffers 2014-10-20 11:45:56 +02:00
Lorenz Hübschle-Schneider 68adfb6cc2 Hotfix irclinky filter: only #channels
&channels match HTML-escaped special chars like " m(
2014-09-28 20:45:29 +02:00
Lorenz Hübschle-Schneider 565ee16990 Fix linkification of IRC channels
Closes #451
2014-09-25 17:26:18 +02:00
Lorenz Hübschle-Schneider a80db339f8 Use strict
Requires turning IrcUtils into an Angular service, because the global variable
trick won't work with use strict.
Reuse is still easily possible by removing the angular wrapping around it.
2014-09-07 16:55:18 +01:00
Lorenz Hübschle-Schneider 21f8f47efe Split things up into logical blocks 2014-08-31 15:57:36 +01:00