Commit Graph

400 Commits

Author SHA1 Message Date
Joffrey JAFFEUX
fd99e1ef56 FEATURE: site setting enable_mentions to turn on/off mentions 2017-12-07 16:27:58 -05:00
Gerhard Schlager
41e70c410c
FEATURE: replace GUID in image name uploaded from iOS (#5370) 2017-11-28 11:05:34 +01:00
Neil Lalonde
33feb62673 FIX: times showing as < 1m instead of blank 2017-11-21 14:33:49 -05:00
Neil Lalonde
b37e40eea9 FEATURE: show read time in last 60 days 2017-11-16 15:46:51 -05:00
Sam
38c103c75e correct spec 2017-11-13 18:09:24 +11:00
Michael Howell
38b8d68c68 FEATURE: Allow the user to select a custom home page (#5268)
* Add user_home configuration option

* Use the new user_home preference to actually show the right home page

* Fix trailing whitespace

* Update user_option_serializer.rb

* Fix JavaScript default homepage tests

* Use an object instead of a giant switch

* Remove trailing whitespace

* Make the default `user_home` set to `null` instead of `0`

* Rename user_home to homepage_id
2017-11-10 06:45:19 +11:00
ckeboss
93633865d9 Adds primary user group as a class to quote (#5285)
* Adds primary user group as a class to quote

This feature addition will add the class `group-PRIMARY_USER_GROUP` to
the quote `aside`. `PRIMARY_USER_GROUP` will be the primary user group
of the user being quoted. This is similar to the class that is added to
a `topic-post`.

* Remove trailing whitespace

* Fix avatar in test

* Address PR comments

* Fix trailing whitespace
2017-11-03 09:51:40 -04:00
Robin Ward
fb2e581b26 FIX: Headings must begin with heading-- to avoid some griefing 2017-10-16 11:53:47 -04:00
Robin Ward
f4decf9193 The quote-other-topic class has been removed 2017-10-06 15:16:06 -04:00
Sam Saffron
46ebd0ee40 correct spec and allow for zero allowed iframes 2017-09-01 12:08:55 -04:00
Guo Xiang Tan
93fe76fc02 Make eslint happy. 2017-08-21 21:56:22 +09:00
Neil Lalonde
24cb950432 FEATURE: Watched Words: when posts contain words, do one of flag, require approval, censor, or block 2017-07-26 11:01:09 -04:00
Sam
17d56a4cb7 FEATURE: use Markdown for image pasted in as opposed to IMG tags 2017-07-25 15:11:38 -04:00
Sam
d7d22554ca correct js test 2017-07-17 18:06:11 -04:00
Sam Saffron
d0c5205a52 Feature: Change markdown engine to markdown it
This commit removes the old evilstreak markdownjs engine.

- Adds specs to WhiteLister and changes it to stop using globals
    (Fixes large memory leak)
- Fixes edge cases around bbcode handling
- Removes mdtest which is no longer valid (to be replaced with
    CommonMark)
- Updates MiniRacer to correct minor unmanaged memory leak
- Fixes plugin specs
2017-07-17 11:41:34 -04:00
Sam
79a084dd58 Revert "remove old markdown engine work-in-progress"
This reverts commit ee470b5317.
2017-07-12 18:10:51 -04:00
Sam
bcbb9f208d Revert "Integrate new engine, correct old specs"
This reverts commit f1b38ba4fb.
2017-07-12 18:10:07 -04:00
Sam
f1b38ba4fb Integrate new engine, correct old specs
corrects edge cases with

- full quotes
- [url] with nested tags
- engine overrides
- onebox applying to non http srcs
2017-07-12 17:44:40 -04:00
Sam Saffron
ee470b5317 remove old markdown engine work-in-progress 2017-07-12 17:44:40 -04:00
Robin Ward
cc525b1a8d Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
Régis Hanol
f943efe1a9 remove use of soon-to-be-deprecated 'Discourse.SiteSettings' (cc @eviltrout) 2017-06-14 10:02:13 +02:00
Sam
826f332766 Merge pull request #4901 from jjaffeux/emoji-5.0
Emoji next
2017-06-13 11:12:41 -04:00
Régis Hanol
54e8fb0d89 FEATURE: new 'allow_staff_to_upload_any_file_in_pm' site setting 2017-06-12 22:41:29 +02:00
Joffrey JAFFEUX
64336a8c75 Emoji 5.0 support 2017-06-05 14:06:23 +02:00
Sam
556ef4cfbd FIX: case sensitive unconditional add of exact match in user search 2017-05-01 14:37:16 -04:00
Robin Ward
0829671963 FIX: Nested quotes weren't rendered properly with BBCode 2017-04-03 14:38:30 -04:00
Robin Ward
7b6242bfbb Minor cleanup of /users/ rename 2017-03-30 10:23:24 -04:00
Robin Ward
14410b71fb Convert server side paths to use /u/ 2017-03-30 10:23:24 -04:00
Robin Ward
45a257815a Convert front end paths from /users/ to /u/ 2017-03-30 10:23:24 -04:00
Robin Ward
a4b658920e FIX: Clear sessionStorage between click track tests 2017-03-27 16:16:14 -04:00
Régis Hanol
dd60cb82c3 UX: add client-side rate limit on click counters 2017-03-13 11:31:37 +01:00
Régis Hanol
b20b568039 FIX: allow for empty translated strings 2017-03-01 11:30:44 +01:00
Régis Hanol
3f5d8b8000 make eslint happy 2017-02-28 10:33:16 +01:00
Régis Hanol
5738253998 FIX: locale fallback with pluralized strings 2017-02-28 10:02:29 +01:00
Régis Hanol
a2c04be718 FIX: eradicate I18n fallback issues 💣
FIX: client's translation overrides were not working when the current locale was missing a key
FIX: ExtraLocalesController.show was not properly handling multiple translations
FIX: JsLocaleHelper#output_locale was not properly handling multiple translations

FIX: ExtraLocalesController.show's spec which was randomly failing
FIX: JsLocaleHelper#output_locale was muting cached translations hashes

REFACTOR: move 'enableVerboseLocalization' to the 'localization' initializer
REFACTOR: remove unused I18n.js methods (getFallbacks, localize, parseDate, toTime, strftime, toCurrency, toPercentage)
REFACTOR: remove all I18n.pluralizationRules and instead use MessageFormat's pluralization rules

TEST: add tests for localization initializer
TEST: add tests for I18n.js
2017-02-24 11:31:21 +01:00
Guo Xiang Tan
058df4329d FIX: Escape escape regexp characters. 2017-01-31 10:39:45 +08:00
Erick Guan
fb3c5bcd0f
FIX: activy column title shows the non-i18n datetime 2016-11-16 22:15:34 +01:00
Neil Lalonde
86522a52b7 FEATURE: add censored_pattern setting to censor posts using regex 2016-11-08 16:39:26 -05:00
David McClure
9bbab6e64e FIX: Auto-link URLs that are inside parentheses 2016-10-29 18:57:25 -07:00
Guo Xiang Tan
299800f524 Make eslint happy. 2016-10-24 12:21:02 +08:00
Guo Xiang Tan
3eae668e64 Set up pretender inside test file. 2016-10-24 12:17:17 +08:00
Sam
f083994f5a FIX: exact group match always should be added 2016-10-24 12:43:38 +11:00
Régis Hanol
35a79a70c3 FIX: uploading custom avatar was always hidden 2016-10-20 19:53:41 +02:00
Régis Hanol
9f7b529495 FIX: properly detect when attachments are allowed 2016-10-19 18:42:24 +02:00
Erick Guan
9ce61b4586 FEATURE: Webhooks. 2016-09-05 18:44:00 +08:00
Robin Ward
78e8aa823d UX: Just show "1m" if less than 1m 2016-08-18 12:47:00 -04:00
Robin Ward
4d8584f427 FIX: Support div dir= in sanitizer 2016-08-15 11:19:10 -04:00
Robin Ward
9cb8d5d19e FIX: Whitelist the big tag 2016-07-29 16:11:18 -04:00
Robin Ward
fbfd3124a0 Whitelist some more tags and add extra tests 2016-07-26 11:02:09 -04:00
Jeff Atwood
1379bd5053 fix all v=2 spec / test errors for emoji 2016-07-25 15:53:48 -07:00
Robin Ward
b9177af1eb FIX: Protocol-less links that begin with a shouldn't error 2016-07-20 13:44:12 -04:00
Robin Ward
7dd4470075 FIX: Allow div align 2016-07-20 12:39:12 -04:00
Robin Ward
e7e6840803 FIX: I shouldn't commit while tired :) 2016-07-20 10:42:35 -04:00
Robin Ward
ad7e2f15c7 Support linking to anchored headings in the first post 2016-07-19 17:05:45 -04:00
Robin Ward
81500e6f40 FIX: Move details tests into the plugin directory 2016-07-19 16:20:59 -04:00
Robin Ward
8141e1d9bc FIX: details fixes with extra formatting 2016-07-19 15:14:55 -04:00
Robin Ward
4d65370797 FIX: <strike> was no longer whitelisted 2016-07-11 12:57:05 -04:00
Robin Ward
a291944835 FIX: Add kbd support to the sanitizer 2016-07-11 12:57:05 -04:00
Robin Ward
bba0fd0654 REFACTOR: PreloadStore to ES6 2016-07-11 12:57:05 -04:00
Robin Ward
b8125b3512 REFACTOR: Remove Discourse.Ajax 2016-07-11 12:57:05 -04:00
Robin Ward
a546395397 REFACTOR: Migrate markdown functionality in ES6 2016-07-11 12:57:05 -04:00
Sam
c665607f72 FIX: not doing non leading word match in emoji autocomplete 2016-07-04 19:16:08 +10:00
Mark Wingerd
e4074f75b1 Stop URLs from being censored (#4288)
URLs that contained a censored word were being altered by
censored-words.js and ulimately this broke the links. As an example
www.expertsexchange.com would get censored when it would link to a
legitimate website.  This URL blocking functionality should be
handled through other settings.
2016-06-29 10:41:54 -04:00
Robin Ward
90330d30f4
FIX: Error in smart short date function 2016-05-31 10:51:47 -04:00
Régis Hanol
c4f93846f9 add linebreaks when uploading a file 2016-05-20 11:35:47 +02:00
Régis Hanol
ad15049ef0 FIX: don't track clicks on links in quotes 2016-05-03 18:47:01 +02:00
cpradio
b7b5caa50e FEATURE: Apply external window setting to Revision History (#4207) 2016-05-02 14:48:34 -04:00
cpradio
5c583ff5bb FEATURE: Extend clicking tracking to the user profile page. (#4203)
* Extend clicking tracking to the user profile page.
Added qunit tests
Fixed click-track-test so it uses the correct data attribute for topic_id in its fixture

* Added a second excerpt to verify test pulls from the appropriate one.
2016-05-02 11:43:58 -04:00
Robin Ward
187d7d6f96
Remove more views and deprecations. 2016-04-28 16:17:18 -04:00
Régis Hanol
6ee11adf58 FIX: 'Discourse.isInternal' wasn't working with protocol-less URLs 2016-04-11 22:21:39 +02:00
Peter Lejeck
9bba68ed74 Allow disabling link tracking with .no-track-link (#4160) 2016-04-11 11:39:49 -04:00
Jeff Atwood
0f11bc0beb fix tests 2016-03-27 09:58:16 -07:00
Jeff Atwood
b3a028acc0 remove built-in support for bbcode size 2016-03-27 09:29:27 -07:00
Robin Ward
396713718b FEATURE: Adds ~200 more emoji
This includes all new emoji from Unicode 7 and Unicode 8 with the
exception of skin tones which will require a new interface.
2016-03-04 15:10:14 -05:00
Robin Ward
482a65821b FIX: Latest eslint doesn't recognize TypedArray 2016-02-15 11:12:57 +01:00
Guo Xiang Tan
4cd07fbb29 Fix broken tests. 2016-02-04 15:24:49 +08:00
Guo Xiang Tan
2c19e7f73d Fix the build. 2016-01-29 17:52:30 +08:00
Guo Xiang Tan
07b244741c FIX: the build. 2016-01-21 16:21:54 +08:00
Guo Xiang Tan
bd86e88b05 UX: Remove category hashtag decoration. 2016-01-21 12:27:52 +08:00
Guo Xiang Tan
9652c3df4f FIX: Don't track category-badges links. 2016-01-20 12:48:00 +08:00
Guo Xiang Tan
4a7f560a35 FEATURE: Decorate category hashtag links. 2016-01-19 10:58:15 +08:00
Guo Xiang Tan
a549229a0d Remove unused code. 2016-01-05 09:37:46 +08:00
Guo Xiang Tan
c1dbf5c1c4 FEATURE: Autolinking to category using hashtags. 2016-01-05 00:12:24 +08:00
Régis Hanol
bebeeffc30 FIX: ico are images too 2015-12-31 11:40:23 +01:00
Jeff Atwood
e03861da7e change all emoji image tests to use ?v=1 2015-12-22 14:36:21 -08:00
Robin Ward
67c08e8aae FIX: Broken tests for slightly_smiling 2015-12-22 16:07:28 -05:00
Sam Saffron
f97a754b30 Revert "Try adding an ALT tag for avatars" 2015-12-15 19:57:54 +11:00
Sam Saffron
dd6e38133a correct tests and implemenation 2015-12-15 19:46:00 +11:00
Sam Saffron
b7f6df7d0c fix specs and tests 2015-12-15 18:18:20 +11:00
Sam
ad3dd161e7 FEATURE: first class group mentions built in
If you allow a group to be mentioned it can be mentioned with the @ symbol.

Keep in mind as a safety mechanism max_users_notified_per_group_mention is set to 100
2015-11-30 17:08:43 +11:00
Sam
5c899c765b Revert "Revert "REFACTOR: support booting discourse with DISCOURSE_NO_CONSTANTS""
This reverts commit c21457d6a7.
2015-11-21 12:27:06 +11:00
Arpit Jalan
e25ee74209 FIX: handle topic/post creation when the language highlighting is turned off 2015-11-21 02:10:54 +05:30
Robin Ward
c21457d6a7 Revert "REFACTOR: support booting discourse with DISCOURSE_NO_CONSTANTS"
This reverts commit c0b277d273.
2015-11-20 10:00:12 -05:00
Sam
c0b277d273 REFACTOR: support booting discourse with DISCOURSE_NO_CONSTANTS
This change is discussed here: https://meta.discourse.org/t/deprecating-es6-compatibility-layer/35821

Prior to this change we were not booting correctly with DISCOURSE_NO_CONSTANTS
2015-11-21 00:14:50 +11:00
Régis Hanol
896c23fadc fix build 2015-11-12 18:02:13 +01:00
Robin Ward
8ba7c06b7d Merge pull request #3735 from riking/patch-4
FIX: Discourse.BaseUri should not default to /
2015-11-06 14:52:19 -05:00
Neil Lalonde
ca98f66f7e FIX: wrong root path on subfolder installs 2015-10-21 13:13:19 -04:00
James D
44b04e4521 Make @mentions following a slash link to usercards
A slash preceding an @mention was causing the markup for the usercard
link to not be generated. For example, the markdown

Pinging @bob/@joe

Would generate a usercard for @bob, but not @joe.
2015-10-16 19:18:46 -04:00
Neil Lalonde
721b282d3c Merge pull request #3701 from xfalcox/patch-1
Fix same domains links on subfolder installs
2015-09-15 11:49:09 -04:00
Rafael dos Santos Silva
230bc8bb6e Add tests to isInternal on subfolder installs 2015-09-14 18:39:54 -03:00
Régis Hanol
0c58f08207 FIX: profile picture selector 2015-09-11 15:10:56 +02:00
Kane York
aca70805f1 FIX: Discourse.BaseUri should not default to / 2015-09-10 17:34:08 -07:00
Robin Ward
1c90f77d09 Merge pull request #3715 from gwwar/quote_newline_code
workaround for code block being parsed before quote block.
2015-09-08 16:52:46 -04:00
Sam
e06d407153 Merge pull request #3718 from tgxworld/allow_emojis_to_be_copy_and_pasted
FIX: Allow user to quote Emojis.
2015-09-07 08:48:34 +10:00
Robin Ward
8e776d0fd7 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
Robin Ward
bf2c18fddb Migrate KeyValueStore to ES6 modules 2015-09-01 14:45:24 -04:00
kerryliu
cb9c603b6b workaround for code block being parsed before quote block. 2015-09-01 09:13:51 -07:00
Guo Xiang Tan
9909c715dc FIX: Emoji can't be copy and pasted. 2015-09-01 15:45:46 +08:00
Guo Xiang Tan
d3fea106fc FIX: Update relativeAgeMedium to be consistent with relativeAgeTiny. 2015-08-31 00:14:57 +08:00
Guo Xiang Tan
50ce95b37d FIX: Post age time not being translated correctly. 2015-08-31 00:11:52 +08:00
kerryliu
5bd1d52de2 FIX: emoji unescape 2015-08-26 21:37:57 -07:00
Régis Hanol
07d6bb8d31 FIX: remove client side maximum filesize check 2015-08-21 12:19:35 +02:00
kerryliu
ee804f608f spoiler tag uses replaceBBCode instead of rawBBCode for emoji and text formatting support. 2015-08-19 15:52:06 -07:00
Robin Ward
22844b9e46 Ember 1.12 support 2015-08-13 11:14:16 -04:00
Robin Ward
02a968bd27 Remove ObjectController, Discouse Controllers + Presence 2015-08-13 10:49:08 -04:00
Robin Ward
e2e3e7c0e0 Add ES6 support to more files 2015-08-13 10:49:08 -04:00
Régis Hanol
2f6788342e fix build 2015-08-12 19:23:41 +02:00
Robin Ward
b7e6eaa961 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
Gerhard Schlager
d08693edce FEATURE: Make abbreviated numbers (k, M) localizable
- Make the decimal separator and thousands delimiter localizable
- Add translations for all languages, otherwise this will look very ugly
2015-06-26 00:51:12 +02:00
Régis Hanol
6dfef49392 fix the build... 2015-06-22 19:57:02 +02:00
Sam Saffron
7942b28780 FIX: Emoji aliases not autocompleted 2015-06-01 12:33:42 +10:00
Régis Hanol
e101396ea1 FEATURE: add support for device pixel ratio = 3 2015-05-28 01:48:07 +02:00
Régis Hanol
85d4d3223c FIX: crop avatars on the server instead of the client
FIX: support for dots in S3 bucket names
2015-05-26 15:54:25 +02:00
Régis Hanol
566b267981 FIX: cropAvatar 2015-05-20 16:45:48 +02:00
Robin Ward
01d4085125 Removed bad JS tests, upgrade QUnit + ember-qunit 2015-05-13 14:13:37 -04:00
Ben Hadley-Evans
c3b461f58d Add blank alt attribute to avatars.
This was giving an ugly border to avatars in the user card as the full size version loaded in Firefox.
2015-04-14 14:39:40 +01:00
Régis Hanol
0f4a4651a9 FIX: youtube preview video title link doesn't work 2015-04-01 18:23:27 +02:00
Régis Hanol
3954f69514 FIX: hoisting issue with regexp replacement patterns 2015-03-23 16:33:41 +01:00
Ben Hadley-Evans
38fbbb28e3 Fix Discourse.Utilities.avatarImg test on Fx.
This qUnit test was failing in Firefox 36 with "setting a property that has only a getter" because devicePixelRatio was being changed directly. The fix uses defineProperty to redefine devicePixelRatio instead.
2015-03-20 12:53:56 +00:00
Régis Hanol
aa41a9ce70 FIX: remove empty lines but keep whitespace on first line in code blocks 2015-03-17 17:27:16 +01:00
Régis Hanol
9395bbbbea add test for fix in 9061c26e52 2015-03-12 16:20:14 +01:00
Régis Hanol
70f00e31df FIX: pre-hoist code blocks & spans 2015-03-09 12:32:37 +01:00
Régis Hanol
9b9bd9c0a1 fix my git foo 2015-03-07 02:36:35 +01:00
Régis Hanol
f95c86ac72 FIX: hoist code blocks content before doing any kind of processing 2015-03-07 02:16:27 +01:00
Robin Ward
9974a26c47 FEATURE: Can specify a list of default_avatars urls.
These new avatars will be used by new users until they upload their own
avatars. If left blank, letter avatars are used.
2015-03-03 16:19:29 -05:00
Régis Hanol
b809e02c6c FIX: clicking an attachment link works only once 2015-02-09 17:49:59 +01:00
Sam
a591c019d4 correct tests 2015-01-29 17:57:34 +11:00
Régis Hanol
e6f849f873 FIX: make sure pasting an image in the composer is considered as an image instead of an attachment 2015-01-23 19:17:33 +01:00
Robin Ward
649dfd8d23 Revert "Convert html.js to ES6 module format"
This reverts commit 60523d8e02.
2015-01-20 16:13:42 -05:00
Robin Ward
60523d8e02 Convert html.js to ES6 module format 2015-01-20 16:07:29 -05:00
Robin Ward
350554e198 UX: Change category badge style to use stripes 2015-01-20 14:56:06 -05:00
Robin Ward
36f53790f4 Added test for markdown bug with linking [ul] and [poll] 2014-12-31 11:45:23 -05:00
Robin Ward
13bf8e1e46 FIX: Markdown bug when a heading preceeded a code block. 2014-12-29 15:59:39 -05:00
Régis Hanol
a06bf0b7be fix the build 2014-11-17 15:47:07 +01:00
Marcin Rataj
9dccd975d9 UX: whitelist OpenStreetMap iframes 2014-11-17 14:30:25 +01:00
Robin Ward
564e7a988c Merge pull request #2848 from riking/whitelist-api
Improve Markdown.whiteListTag, code dialect
2014-11-07 11:33:37 -05:00
Sam
d4224a64e8 correct spec 2014-10-22 15:50:04 +11:00
Dean Taylor
c2614543b1 Correct minor spelling mistakes
@sam highlighted I made a spelling mistake in a commit - thought I would throw a few more in.
2014-10-19 23:55:19 +01:00
Dean Taylor
b023e81078 FIX: Censored word match fail if earlier partial match
Previously a list containing `one|two|three|four|twoagain` would fail to censor the word `twoagain` in the text `test1 twoagain test2`.
2014-10-17 03:10:30 +01:00
Robin Ward
27e68518df FIX: BBCode was trimming leading space in [code] blocks 2014-10-10 15:11:30 -04:00
Robin Ward
3b38667274 FIX: Check for word boundaries with censored words. 2014-10-09 16:35:27 -04:00
Robin Ward
285c66b899 FIX: Say the file uploaded is too large, not "image" as you can upload
other kinds of files.
2014-10-09 16:03:04 -04:00
riking
ef36a619c3 Update Markdown tests 2014-10-05 17:30:29 -07:00
Robin Ward
9564ecde76 FEATURE: Site setting for words to censor in posts 2014-10-02 13:58:58 -04:00
Sam
1d2c7206e6 Merge pull request #2820 from Elberet/fix-url-bbcode
FIX: reworked handling URL bbcode tags
2014-09-25 09:36:55 +10:00
Robin Ward
98d21ed21f Remove deprecated Ember.Deferred 2014-09-24 14:17:29 -04:00
Jens Maier
dcd7a149e2 FIX: reworked handling URL bbcode tags 2014-09-24 20:02:02 +02:00
Robin Ward
d1d3e5dd8c Remove broken debouncePromise and clean up some deprecations 2014-09-23 16:16:44 -04:00
Robin Ward
537e6b193d FIX: Allow proper escaping of bold and italics markdown, even when
nested.
2014-09-22 16:52:14 -04:00
Robin Ward
914217f78a FIX: Allow BBCode images within BBCode links 2014-09-22 14:42:24 -04:00
Jens Maier
9cca64cf69 FIX: BBCode blocks parser no longer mangles JsonML arrays 2014-09-22 03:27:39 +02:00
Jeff Atwood
5646ebf4c7 fix tests expecting "name said:" to "name:" 2014-09-18 20:39:27 -07:00
Jens Maier
543bc53598 FIX: double-escaped single quotes in URLs 2014-09-18 22:07:42 +02:00
Sam Saffron
33c6a2d341 correct tests 2014-09-18 15:26:45 +10:00
Jens Maier
30dbb570e5 FIX: fix dialect block ordering 2014-09-10 13:29:40 +02:00
Jens Maier
9be5c98c8c FIX: Markdown parser: empty links and bbcode parsed as link refs 2014-08-31 02:55:43 +02:00
Arpit Jalan
289d9e4fe1 FIX: use short date format for topic summary 2014-08-30 12:07:43 +05:30
Jens Maier
c58565d09f Fix: dialect block parser should not eat next block's whitespace 2014-08-26 14:11:23 +02:00
Jens Maier
b8f5c21df0 Workaround markdown-js links parser bug 2014-08-24 01:56:14 +02:00
Robin Ward
2ae46b4742 REMOVE: Auto quoting confused more people than it helped. 2014-08-22 14:51:31 -04:00
Robin Ward
300dbdc88b FIX: BBCode contents can span multiple lines 2014-08-22 14:32:29 -04:00
Robin Ward
104b39540a FIX: BBCode with params couldn't span lines 2014-08-22 12:14:10 -04:00
Régis Hanol
5b1785157d TRIVIAL: fix deprecations due to momentjs upgrade 2014-08-20 22:22:58 +02:00
Jens Maier
23002ae01c Fix: block parser now uses regexes for end tags. solves code block case, where end tag must be on a line of its own. 2014-08-14 01:58:01 +02:00
Robin Ward
233305e96f FIX: On devices with a weird pixel ratio, tests were failing. 2014-08-12 17:29:18 -04:00
Robin Ward
f977843391 ES6: Convert all test files over 2014-08-06 17:51:03 -04:00
Robin Ward
c5b5db48cf TESTS: Reset the preload store for testing 2014-07-31 13:25:40 -04:00
Robin Ward
6f36d5996d Lots of work on tests 2014-07-30 20:09:45 -04:00
Robin Ward
717f57c968 Revert "FIX: You couldn't span multiple lines with bold or italics"
This reverts commit 423d37a2b6.

Conflicts:
	test/javascripts/lib/markdown_test.js
2014-07-28 13:17:39 -04:00
Robin Ward
8866141ba2 Merge pull request #2592 from Elberet/fix-parser
Fixes for quirky markdown parser behaviours
2014-07-28 13:12:22 -04:00
Jens Maier
479eb64a76 FIX: rewrite replaceBlock logic to better handle mismatched nested quotes. 2014-07-27 16:07:47 +02:00
Jens Maier
9124cf0eaf FIX: auto-quote should not trigger when the first " is preceded by bbcode-like garbage. 2014-07-27 16:05:29 +02:00
riking
5841e10b59 Extra test for spanning italics 2014-07-25 13:15:14 -07:00
Robin Ward
423d37a2b6 FIX: You couldn't span multiple lines with bold or italics 2014-07-25 16:08:00 -04:00
Robin Ward
b2f2e7b1d2 REFACTOR: Move Markdown tests to Javascript land 2014-07-25 16:08:00 -04:00
Robin Ward
f3bb8902c1 Make a mocked test that broke pending for now. The logic works, will
replace with a new test later.
2014-07-24 15:14:36 -04:00
Jens Maier
b19ad15086 FIX: improve list bbcodes: ignore newlines resulting in unnecessary blank lines 2014-07-24 19:39:16 +02:00
Jens Maier
79dc68512f FIX: dialects accept nested inline markup 2014-07-24 17:34:13 +02:00
Régis Hanol
7ebfe86100 TEST: allows data images 2014-07-18 20:38:01 +02:00
Sam
fecb9ddb43 FIX: invalid test 2014-07-17 16:11:10 +10:00
Robin Ward
d6589d4c53 FIX: Cooking issue with paragraphs in a list 2014-07-15 16:42:14 -04:00
Régis Hanol
a9342dbf92 SECURITY: fix XSS in link's href 2014-07-15 16:11:37 +02:00
Robin Ward
1886ffaff2 FIX: Work with phpBB import style links with ellipsis 2014-07-14 14:27:17 -04:00
Robin Ward
186ce78cb5 FIX: BBCode sanitization and tests 2014-07-14 11:24:25 -04:00
Robin Ward
fc1ce96dbb FIX: Change the approach to sanitization. Includes a more detailed API
for allowing classes and attributes for only certain tag names.
2014-07-03 16:55:36 -04:00
Robin Ward
9c48f8f154 FIX: Don't surround <aside> with <p> as that is malformed HTML. 2014-06-30 18:11:22 -04:00
Robin Ward
a7ad7f6a45 Remove some obscure HTML tags from sanitization 2014-06-24 11:03:45 -04:00
Robin Ward
ff55a30dd7 FIX: <pre> blocks were adding too many new lines. 2014-06-23 15:21:07 -04:00
Robin Ward
42d1fcbbc2 [code] should work just like other kinda of code formatting. 2014-06-23 13:19:27 -04:00
Robin Ward
c6b92f0ef7 FIX: Support for nested bold/italics in MD 2014-06-09 17:46:36 -04:00