Commit Graph

43 Commits

Author SHA1 Message Date
hmhealey
0356130ca6 Updated markdown regexes to better handle underscores and links 2015-10-28 14:31:41 -04:00
hmhealey
429e25864b Modified markdown lexer to not break up words written in snake_case 2015-10-28 14:31:41 -04:00
Girish S
9de0ceb229 auto-link mentions with user names having symbols
this also handles the case where user_name having '_'
2015-10-27 18:02:07 +05:30
Harrison Healey
b46c01b290 Merge pull request #1171 from trashcan/github-1130-handle-trailing-characters-after-user
Handle trailing characters after user
2015-10-26 09:57:29 -04:00
Girish S
e9812655f6 made eslint happy 2015-10-26 13:00:26 +05:30
Girish S
4cfde35256 append * to search query if not present and highlight partial matches 2015-10-26 12:25:14 +05:30
Pat Lathem
3a588fbc18 Fix highlighting of trailing punctuation for own username 2015-10-25 14:09:09 -05:00
Pat Lathem
80e0a8db1d Fix off by one error 2015-10-24 18:54:01 -05:00
Pat Lathem
0c04535599 Remove trailing punctuation when parsing @username references 2015-10-24 18:32:45 -05:00
hmhealey
25e018ece0 Changed markdown renderer to only parse emoticons twice 2015-10-22 09:47:28 -04:00
Florian Orben
b8c80c6d95 Don't auto-add http:// to mailto: and ftp: markdown links 2015-10-14 21:44:09 +02:00
hmhealey
17d37816d4 Revert "Modified markdown lexer to not break up words written in snake_case"
This reverts commit 787d2ef7bc.
2015-10-13 14:36:58 -04:00
hmhealey
787d2ef7bc Modified markdown lexer to not break up words written in snake_case 2015-10-09 16:30:57 -04:00
hmhealey
3c489518e6 Fixed html used for autolinking 2015-10-08 15:59:21 -04:00
Christopher Speller
806fd77ec9 Merge pull request #981 from mattermost/plt-517
PLT-517 Changing SpinPunch to Mattermost in copyright
2015-10-08 12:55:11 -04:00
=Corey Hulen
e640bf7b6c Fixing issue with lastIndexOf 2015-10-08 09:34:49 -07:00
Christopher Speller
b85b529373 Changing SpinPunch to Mattermost in copyright 2015-10-08 12:27:09 -04:00
=Corey Hulen
d412144f88 Adding removing blank target for browser links 2015-10-08 09:14:13 -07:00
hmhealey
fe8c04c973 Added emailto: to the beginning of email links 2015-10-02 09:18:45 -04:00
hmhealey
55f11ba871 Removed extra handling of markdown links when doing autolinking 2015-09-22 14:34:59 -04:00
hmhealey
1afa1d37c7 Moved text formatting code to only occur inside of markdown text nodes 2015-09-22 14:30:50 -04:00
hmhealey
d025da5da9 Changed hashtag regex to only accept hashtags that begin with a letter 2015-09-22 14:28:43 -04:00
hmhealey
1709532ae6 Moved emoticon parsing to happen after url parsing so that we don't have smilies accidentally occuring in urls 2015-09-22 14:14:54 -04:00
hmhealey
ffe34aa154 Restored changes which remove emojify and switch to our own version 2015-09-22 13:53:43 -04:00
Christopher Speller
e7d408585a Revert "PLT-289 Added parsing for named emojis to TextFormatting and removed emojify" 2015-09-22 13:21:58 -04:00
hmhealey
251d33ad23 Added parsing for named emojis to TextFormatting and removed dependency on emojify 2015-09-22 09:22:49 -04:00
hmhealey
144a277a44 Cleaned up markdown formatting code and removed debug statements 2015-09-19 11:18:37 -04:00
hmhealey
5f18c71d07 Deferred to marked.js's html sanitization when markdown is enabled 2015-09-19 11:18:32 -04:00
hmhealey
2eb320f48a Changed markdown link parsing to automatically add an explicit protocol to urls 2015-09-19 10:39:55 -04:00
hmhealey
efb3462a68 Prevented our url autolinking from breaking markdown links 2015-09-19 10:39:51 -04:00
hmhealey
bb330b662a Added marked library to text_formatting.jsx 2015-09-19 10:08:59 -04:00
hmhealey
ae5a1e3ea8 Removed underscores surrounding formatting tokens since they won't work with markdown 2015-09-19 10:08:59 -04:00
hmhealey
208bf914b8 Removed unnecessary conversion of newlines to html line breaks 2015-09-19 10:08:59 -04:00
hmhealey
bc8e69d99f Fixed incorrect check if a url starts with an explicit protocol 2015-09-18 11:56:23 -04:00
hmhealey
60d2cff723 Replaced instances of startsWith with lastIndexOf in TextFormatting 2015-09-16 14:08:10 -04:00
hmhealey
4c9ae22b62 Renamed text formatting tokens so that there should be significantly less chance of having conflicting tokens 2015-09-14 15:08:13 -04:00
hmhealey
3e3b52554a Cleaned up TextFormatting and added a default click handler for hashtags and @mentions 2015-09-14 12:21:58 -04:00
hmhealey
214e48835a Added highlighting of search terms to the new text formatting 2015-09-14 09:19:27 -04:00
hmhealey
e1797c7d55 Added autolinking of hashtags to the new text formatting 2015-09-14 09:19:27 -04:00
hmhealey
3ab2814af3 Added autolinking of urls to the new text formatting 2015-09-14 09:19:26 -04:00
hmhealey
5d28ffa444 Added highlighting when the current user is mentioned to the new text formatting 2015-09-14 09:19:26 -04:00
hmhealey
91f258c725 Added handling for @mentions to the new text formatting 2015-09-14 09:19:26 -04:00
hmhealey
2d2939576c Added skeleton for new text formatting code which will replace textToJsx 2015-09-14 09:19:26 -04:00