Commit Graph

35 Commits

Author SHA1 Message Date
Carlos Tadeu Panato Junior
fb2ef7708b PLT-6796 - Regression: Code tag is empty for html code blocks (#6779) 2017-06-28 09:39:12 -04:00
Joram Wilander
ca8d57c4db PLT-6890 Fix various scrolling issues (#6727)
* Fix various scrolling issues

* Move reaction scrolling to reaction list

* Handle scrolling when RHS opens

* Only run scroll update code when posts change
2017-06-23 12:09:56 -04:00
VeraLyu
5158d3a446 Remove fake img preview before loaded (#5854)
Remove fake img preview and collapse toggle before it is loaded,
only show img and toggle after it is fully loaded.
Fix markdown img size and add scroll down behaviour.
2017-06-16 13:12:22 -04:00
Harrison Healey
e16da499b4 PLT-6380 Make team invite links open in the current tab (#6538)
* PLT-6380 Changed link formatting to make team invite links open within the current tab

* Fixed internal link parsing when site URL isn't set
2017-06-02 10:53:03 -04:00
Harrison Healey
fb6f2a123c PLT-5860 Updated copyright date (#6058)
* PLT-5860 Updated copyright date in about modal

* PLT-5860 Updated copyright notice in JSX files

* PLT-5860 Updated copyright notice in go files

* Fixed misc copyright dates

* Fixed component snapshots
2017-04-12 08:27:57 -04:00
Harrison Healey
f7a4c75a21 PLT-5702 Added special error page for private browsing error message (#5985) 2017-04-04 19:21:31 -04:00
VeraLyu
94b4aa082c PLT-5913: Remove id from heading markdown compilation (#5782)
Id for heading markdown is unnecessary as we didn't
attach any style/effect on that id, and it also introduce
duplicate id. So remove it from heading markdown generatiing.
2017-03-23 08:19:22 -04:00
Harrison Healey
8866218243 Revert "PLT-3181 Added crossorigin='anonymous' to all external images (#5774)" (#5815)
This reverts commit 24848f9d6a.
2017-03-20 16:58:09 -04:00
Harrison Healey
24848f9d6a PLT-3181 Added crossorigin='anonymous' to all external images (#5774)
* PLT-3181 Added crossorigin='anonymous' to all external images

* Fixed image unit tests

* Added crossorigin='anonymous' to a few more places
2017-03-16 11:59:00 -07:00
Harrison Healey
57d9d0ad1e Disabled mangling of email addresses in markdown autolinks (#5192) 2017-01-25 23:13:17 -03:00
Jürgen Haas
fefe4b70d9 Support explicit image sizes in markdown (#4803)
* Support explicit image sizes in markdown

* Cleanup code

* Add support for missing second dimension

* Overwrite height style attribute if available, use "auto" otherwise

* Fix syntax

* Do not set the height style if its value is auto

* Re-calculate width and height, if given height is bigger than max-height

* Make formulas more explicit
2017-01-20 11:21:39 -05:00
Christopher Speller
a798714958 Updating eslint (#4573) 2016-11-17 12:02:16 -05:00
Pierre Rudloff
7e67eabca9 Fix URL parsing when URL has been encoded with escape() (fixes #4322) (#4338) 2016-10-26 12:36:16 -04:00
Yusuke Nemoto
26099d89e9 PLT-3487 Preview uploaded txt file (#4145)
* fix filename

* Add 'txt' to hilighted language
2016-10-05 10:34:03 -03:00
Christopher Speller
93f2b6a833 Updating ESLint (#4085) 2016-09-23 12:29:54 -04:00
Harrison Healey
167dd22eef PLT-1752/PLT-3567/PLT-3998 Highlighting links in search, unit tests for autolinking (#3865)
* Added highlighting to links when their URL includes the search term

* Decoupling UserStore from react-router to allow for unit tests involving it

* PLT-3998 Added SiteURL as an option to be passed into the text formatting code

* Removed reference to PreferenceStore and window from TextFormatting

* Refactored TextFormatting to remove remaining browser-only code

* Updated ChannelHeader and MessageWrapper to match the changes to TextFormatting

* Increased max listeners for Preference and Emoji stores

* PLT-3832 Added automated unit tests for autolinking

* PLT-3567 Rerender posts when mention keywords change

* Updated RHS and search to match the changes to TextFormatting

* Broke TextFormatting's dependency on the UserStore
2016-08-29 09:50:00 -04:00
Harrison Healey
c79685b0bc PLT-3534 Changed special handling of internal links to only occur for permalinks and links to channels (#3731) 2016-08-03 18:28:38 -05:00
Harrison Healey
40c47dcf0b Rendered invalid URLs as plain text when parsing markdown (#3616) 2016-07-19 08:28:29 -04:00
Harrison Healey
bde4326458 Properly removed hashtags and at mentions inside of markdown links (#3283) 2016-06-07 17:43:19 -04:00
Harrison Healey
0e677f35bb Removed hashtag/mention links that appear within text for markdown links (#3199) 2016-06-02 19:48:43 -03:00
Harrison Healey
5f7ce2214a Improved internal links which use react-router (#3180) 2016-06-01 08:52:28 -04:00
Harrison Healey
f5ccfb362e Reorganized syntax highlighting code and added search term highlighting for code blocks with syntax highlighting (#3191) 2016-06-01 08:28:54 -04:00
Harrison Healey
4a326dd6ce PLT-1626/PLT-1424/PLT-1473/PLT-1483 Improved search highlighting (#3171)
* PLT-1626 Stopped breaking up hyphenated hashtags when highlighting search terms

* Made hashtag search highlighting case independent

* PLT-1424 Improved search highlighting when searching for CJK characters

* PLT-1473 Added search term highlighting to single-line code blocks

* PLT-1473 Added search term highlighting to code blocks that don't use syntax highlighting

* PLT-1483 Added proper highlighting of at mentions

* Fixing formatting
2016-05-31 10:37:59 -04:00
Harrison Healey
1e7805b790 Fixed ESLint errors (#3134) 2016-05-27 09:56:41 -04:00
Harrison Healey
15e427e806 PLT-1458 Updated list autonumbering (#3126)
* Removed MattermostLexer since it was exactly the same as the default marked one

* Updated list autonumbering to always start numbering from the first item's number
2016-05-27 08:22:22 -04:00
Harrison Healey
6092be8af1 Updated our fork of marked and prevented catastrophic backtracking (#3098) 2016-05-25 08:38:03 -07:00
Harrison Healey
3b5a5110c7 Revert "Updated our fork of marked and added more links to test-links.md (#3047)" (#3090)
This reverts commit c868620693.
2016-05-24 07:12:02 -07:00
Harrison Healey
c868620693 Updated our fork of marked and added more links to test-links.md (#3047) 2016-05-19 08:38:50 -04:00
Harrison Healey
3b8b23218d Added noreferrer to some links (#2897) 2016-05-05 14:17:59 -04:00
Harrison Healey
2337fe236e Fixed external links to open in a new tab (#2793) 2016-04-25 10:46:34 -04:00
Harrison Healey
f73daebb61 PLT-1236 Added special handling for markdown links within mattermost (#2763)
* Added special handling for markdown links within mattermost

* Moved application of .app__body class to route components
2016-04-22 11:52:44 -07:00
Harrison Healey
ac794bcc3b Fixed link formatting 2016-04-13 14:57:42 -04:00
Christopher Speller
128204b47a Fixing style issue caused by build changes 2016-03-17 12:42:03 -04:00
Rodrigo Corsi
529513606b Created component CodePreview 2016-03-17 12:47:07 -03:00
Christopher Speller
12896bd23e Converting to Webpack. Stage 1. 2016-03-16 18:02:55 -04:00