evazion
08b1c76533
dtext: refactor stripping markup from dtext.
...
There are a handful of places where we need to strip markup from a piece
of dtext, primarily in <meta> description tags in the wiki. Currently
the dtext parser handles this by having a special mode where it parses
the text but doesn't output html tags. Here we refactor to instead parse
the text normally then strip out the html tags after the fact.
This is more flexible and allows us to simplify a lot of things in the
dtext parser. This also produces more readable output than before in
certain cases.
2019-10-09 16:36:01 -05:00
evazion
04ecca6a06
Fix #3591 : DeviantArt commentaries: strip embedded image/text thumbs.
2018-03-31 11:27:14 -05:00
evazion
80219a0ccf
commentaries: replace <img> tags with dtext links ( #3586 )
...
Replace <img> tags with dtext links, unless the <img> tag is already
inside an <a> tag.
Also strip Unicode spaces from DeviantArt commentaries.
2018-03-30 21:42:51 -05:00
evazion
4c54e18c6d
mentions: factor out mention parsing to DText.parse_mentions.
2017-08-04 23:48:31 -05:00
evazion
7cb7c2fbab
Remove ruby DText implementation ( #3206 ).
2017-07-19 16:48:42 -05:00
evazion
71f84b10af
tumblr: convert commentary to dtext.
...
* Convert Tumblr commentary to DText.
* Strip extraneous whitespace in links and blockquotes.
* Add newlines after block elements to ensure they're separated from
subsequent blocks.
2017-07-01 11:15:48 -05:00
evazion
b880b07387
sources: factor out html-to-dtext code to DText.from_html.
2017-07-01 11:15:48 -05:00
evazion
990f173b3d
notes: move sanitization from d_text.rb to note_sanitizer.rb.
2017-06-15 22:58:13 -05:00
evazion
c586a66e1f
dtext: recognize [QUOTE] tags when quoting comments, forum_posts.
...
Fixes a bug with capitalized [QUOTE] tags not being handled properly
when quoting comments or forum posts.
2017-04-24 21:15:47 -05:00
evazion
869f1610fc
comments: use server-side quote-stripping instead of reimplementing in js.
2017-04-24 21:15:47 -05:00
evazion
18424531fa
Merge mentions quote-stripping code into DText quote-stripping code.
2017-04-24 21:15:42 -05:00
evazion
f1552539f7
notes: allow <ruby> tags for marking up furigana.
2017-04-21 14:31:05 -05:00
evazion
46280f2227
mentions: include mentioner in subject line.
...
The template looks like this:
Subject:
#{creator_name} mentioned you in a comment on post ##{post_id}
Body:
@#{creator_name} mentioned you in a \"comment\":/posts/#{post_id}#comment-#{id} on post ##{post_id}:
[quote]
#{DText.excerpt(body, "@"+user_name)}
[/quote]
2017-02-25 23:05:44 -06:00
r888888888
a21640429c
add dtext prefix to header id in ruby dtext parser
2016-09-09 16:41:03 -07:00
Type-kun
756881966a
Fix dtext.parse_strip failing for nil ( closes #2662 )
2016-09-08 22:47:42 +05:00
r888888888
d47059d246
fixes #2654 : @mentions shouldn't link to Danbooru users in artist commentaries
2016-09-07 16:08:55 -07:00
Type-kun
8c04a9d390
Fix #2598 for old parser
2016-09-06 01:06:29 +05:00
r888888888
5fe163b29f
fix parse_strip call
2016-04-27 17:14:06 -07:00
r888888888
7f9261b0cb
strip syntax for meta description tag
2016-02-04 14:10:43 -08:00
r888888888
504674b288
add rel=nofollow in more places
2016-02-03 23:47:17 -08:00
r888888888
286c71b342
smarter mention parsing #2466
2015-11-02 12:30:37 -08:00
r888888888
821c7bc2a5
add dmail notices for mentions in forum posts
2015-10-14 15:32:48 -07:00
r888888888
5b04cd632d
additional @mention autocomplete fixes
2015-10-01 12:13:28 -07:00
r888888888
cad671c533
add support for at mentions in dtext
2015-09-29 17:43:36 -07:00
Toks
3a66e521fc
#1932 disallow css urls
2015-04-21 15:10:14 -04:00
Toks
8ee5902da8
fix #2362
...
Rather than removing all css now it will remove only css not listed in
the "relaxed" sanitize config.
2015-03-27 21:35:30 -04:00
Toks
e6e6b2fe1c
fixes #2095
2014-11-18 15:13:43 -05:00
Toks
fd290076fe
fixes #2241
2014-09-24 13:28:56 -04:00
Toks
b22a77d4c5
improve #1678
...
Remove blank &page= parameter when page isn't specified, and indicate
page in the link's text when it is.
2014-08-01 17:59:59 -04:00
r888888888
2aa9288d52
fixes #1678
2014-06-20 17:36:19 -07:00
r888888888
331377a32b
implements #982
2014-06-03 15:23:16 -07:00
r888888888
165e3a4efa
fixes #530
2014-02-27 13:41:36 -08:00
Toks
52fd58087d
Restyle expandable blocks
2013-12-23 13:22:25 -05:00
r888888888
b618322ac1
Fixes #2042 , fix specs
2013-12-03 17:20:03 -08:00
r888888888
327b52c2d3
add performance test for dtext, fixes #2051
2013-12-03 15:50:58 -08:00
r888888888
1613116266
remove sanitize call from DText.parse, cache post notes, remove prefetch links
2013-12-03 15:29:03 -08:00
r888888888
9e45158423
fixes #1099
2013-09-26 17:21:59 -07:00
Toks
d4d6d0d06b
Fix leading/trailing whitespace in code blocks disappearing
2013-08-07 20:41:41 -04:00
Kevin Xiwei Zheng
c6f79df22c
More complete fix for #1803
...
When a list is prefixed by more than one non-list line, output those
prefix lines as part of the same paragraph, not as separate ones.
Treat other lines not beginning with a "*" as continuations of the
previous list item.
2013-07-01 21:07:23 -04:00
Kevin Xiwei Zheng
817880012c
Band-aid fix for bulleted list rendering ( #1803 )
2013-07-01 20:47:00 -04:00
r888888888
60dc05d527
revert to old dtext spoiler behavior
2013-06-19 16:40:12 -07:00
Toks
c8be5bea7a
merge expandable branch; fixes #1638
2013-06-14 12:43:40 -04:00
Toks
58a93876b6
fixes #1638
2013-06-14 12:11:50 -04:00
r888888888
ae6e53081e
fixes #1568
2013-05-31 15:55:58 -07:00
Toks
998ad51203
fixes #1661
2013-05-23 13:58:54 -04:00
Toks
d9bf3314d1
fixes #1131
2013-04-16 13:53:36 -04:00
Toks
458f411021
fixes #1311
2013-04-16 13:49:39 -04:00
albert
6f3bf9c186
fixes #1212
2013-04-09 18:02:01 -04:00
Toks
d45db380e9
should fix #165
2013-03-30 13:54:01 -04:00
Toks
30ba85d516
fixes #1010
2013-03-28 20:38:49 -04:00