Sam
0650c8dbab
optimize rule lookup
...
we have tons of bbcode rules, might as well speed them up
2017-06-30 15:19:16 -04:00
Sam
a55e679563
support wrap function in bbcode rules
2017-06-30 12:21:01 -04:00
Sam
ca40c1725c
add support for a wrap function in bbcode replace
2017-06-29 16:43:57 -04:00
Sam
d941ed90d6
support for bbcode [code] blocks
2017-06-29 16:04:10 -04:00
Sam
de50d8cd35
Support for [email] [url] [img] bbcodes
2017-06-29 14:00:09 -04:00
Sam
c6b83f4714
Correct logic so hashtags are properly ignored in links
2017-06-29 12:48:20 -04:00
Sam
0e391a72a1
use custom whitelister for tables
2017-06-28 16:08:29 -04:00
Sam
6200d7d6ab
correct bug where only a single poll per topic worked
2017-06-28 15:36:19 -04:00
Sam
cfbda863e8
implement unicode emoji replacements
2017-06-28 13:47:30 -04:00
Sam
4c5109ff5b
FEATURE: site setting for Markdown typographer
...
It ships anyway with markdown.it so we might as well expose it
2017-06-27 16:50:13 -04:00
Sam
0d62420cbe
Space prior to onebox stops onebox resolution
2017-06-27 16:16:17 -04:00
Sam
232de90607
explicit autolink should not be oneboxed
2017-06-27 15:34:16 -04:00
Sam
0e0092d738
corrected a parsing edge cases for bbcode blocks
2017-06-27 10:07:06 -04:00
Sam
21f7ac1f25
correct spec, require closing tag for bbcode blocks
2017-06-26 16:51:55 -04:00
Sam
8967d50dc2
Clean up sanitization code
...
- remove html table test, this is soon to be deprecated
- move sanitization tests into pretty text.rb
- fix up whitelister so it makes a copy of options
2017-06-26 15:21:47 -04:00
Sam
e9f55adb3a
FEATURE: add table support
2017-06-26 13:25:05 -04:00
Sam
df5ee0cfc1
correct onebox rendering so it fills in cached
...
the onebox plugin needs to pull in the actual cached onebox
and bypass the whitelister for onebox content
2017-06-26 13:09:58 -04:00
Sam
81eb3218b2
FEATURE: used strict sanitizer by default
...
This amends it so sanitize always uses the most strict sanitizer
by default, if it needs to be "widened" to use more options then
you need to pass it more options.
2017-06-26 11:27:30 -04:00
Sam
da5ccd2000
correctly hunt for console.log
2017-06-23 15:24:20 -04:00
Sam
814c8804d4
correct text highlighting for no highlight
2017-06-23 14:35:46 -04:00
Sam
05e5a740a6
FEATURE: consistent bbcode inline and block rulers
2017-06-23 12:01:33 -04:00
Sam
234694b50f
Feature: CommonMark support
...
This adds the markdown.it engine to Discourse.
https://github.com/markdown-it/markdown-it
As the migration is going to take a while the new engine is default
disabled. To enable it you must change the hidden site setting:
enable_experimental_markdown_it.
This commit is a squash of many other commits, it also includes some
improvements to autospec (ability to run plugins), and a dev dependency
on the og gem for html normalization.
2017-06-23 12:01:33 -04:00
Joffrey JAFFEUX
353d059133
Explains sort/reverse of emoji replacements
2017-06-14 17:54:52 +02:00
Joffrey JAFFEUX
95e1843d33
Improves native emoji conversion
2017-06-14 17:42:52 +02:00
Sam
826f332766
Merge pull request #4901 from jjaffeux/emoji-5.0
...
Emoji next
2017-06-13 11:12:41 -04:00
Robin Ward
bd70656b90
FIX: Oneboxing root domains could stop previewing
2017-06-12 12:13:29 -04:00
Joffrey JAFFEUX
ba07ae67fb
prefer const over let
2017-06-05 14:35:27 +02:00
Joffrey JAFFEUX
f8e5cbd81a
prefer const when not reasigned
2017-06-05 14:33:52 +02:00
Joffrey JAFFEUX
64336a8c75
Emoji 5.0 support
2017-06-05 14:06:23 +02:00
Robin Ward
0829671963
FIX: Nested quotes weren't rendered properly with BBCode
2017-04-03 14:38:30 -04:00
Robin Ward
45a257815a
Convert front end paths from /users/
to /u/
2017-03-30 10:23:24 -04:00
Régis Hanol
67eb754c3c
remove duplicate emoji translation
2017-03-22 12:07:17 +01:00
Régis Hanol
ccd4832726
Add 'slight_smile' emoji translations
2017-03-22 10:17:10 +01:00
Guo Xiang Tan
0f2de4863b
Make Eslint happy.
2017-01-31 10:45:04 +08:00
Guo Xiang Tan
058df4329d
FIX: Escape escape regexp characters.
2017-01-31 10:39:45 +08:00
Guo Xiang Tan
1758af9a1d
FIX: Perform emoji unescape for topic titles in quotes.
2017-01-11 17:23:13 +08:00
Guo Xiang Tan
1cf0401e26
Allow option to not include title on emoji images.
2017-01-03 11:07:55 +08:00
Régis Hanol
bf9e59eda9
FIX: add option for the oneboxer to be synchronous
2016-12-20 11:18:03 +01:00
Guo Xiang Tan
375f3feeb8
FIX: Topic featured links not getting oneboxed immediately.
2016-12-20 10:27:12 +08:00
Régis Hanol
52cd9972bb
FIX: prevent DDoS with lots of _oneboxable_ links
...
FIX: ensure the onebox route is only allowed to logged in users
FIX: only allow 1 outgoing onebox preview per user
FIX: client should only do 1 preview at a time
2016-12-20 00:31:10 +01:00
Régis Hanol
af387edeb0
FIX: quote button issues
...
- disappear when moving to another topic
- disappears when clicking outside of the selection
- works even when selecting the last paragraph of a post
- works on all latest mobile OS
2016-11-24 18:23:33 +01:00
Régis Hanol
2710525d01
FIX: custom emojis leaking over multisite - take 2
2016-11-17 23:28:27 +01:00
Régis Hanol
a0f1090d79
FIX: custom emojis leaking over multisites
2016-11-17 19:35:39 +01:00
Neil Lalonde
f10520a5f2
fix broken js lint
2016-11-08 17:59:51 -05:00
Neil Lalonde
86522a52b7
FEATURE: add censored_pattern setting to censor posts using regex
2016-11-08 16:39:26 -05:00
Régis Hanol
78cd42943f
FEATURE: add 'emoji-custom' class to custom emojis
2016-11-08 16:36:09 +01:00
David McClure
9bbab6e64e
FIX: Auto-link URLs that are inside parentheses
2016-10-29 18:57:25 -07:00
Régis Hanol
3841cd9a7f
FEATURE: onebox everything by default
...
FEATURE: new 'max_oneboxes_per_post' site setting
FEATURE: change onebox whitelist to a blacklist
PERF: debounce the loading of oneboxes
PERF: improve perf of mention links in preview
FIX: sort loading of custom oneboxer
2016-10-24 12:46:22 +02:00
Neil Lalonde
761cc688b4
FEATURE: add a setting to allow url schemes other than http(s)
2016-10-21 12:21:31 -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
Sam
521d3d11f2
allow some more tags through
2016-07-26 09:43:30 +10:00
Jeff Atwood
41dda1882e
let's expire all emoji
2016-07-25 15:38:13 -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
16383a1749
FIX: Also support just open
2016-07-20 13:30:36 -04:00
Robin Ward
7dd4470075
FIX: Allow div align
2016-07-20 12:39:12 -04:00
Robin Ward
ad7e2f15c7
Support linking to anchored headings in the first post
2016-07-19 17:05:45 -04:00
Robin Ward
8141e1d9bc
FIX: details fixes with extra formatting
2016-07-19 15:14:55 -04:00
Robin Ward
00e45c0d3c
FIX: Safari strict mode errors
2016-07-13 15:36:34 -04:00
Guo Xiang Tan
c3cab98998
FEATURE: Admins should be able to create polls even when plugin is disabled.
2016-07-13 18:05:19 +08:00
Robin Ward
4d65370797
FIX: <strike>
was no longer whitelisted
2016-07-11 12:57:05 -04:00
Régis Hanol
a2b9b01d0f
FIX: details plugin wasn't working properly
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