Commit graph

22 commits

Author SHA1 Message Date
Carl Chenet 3d54a8ea83 users: re-enable username '@' linking in user profiles 2017-05-23 12:48:36 +02:00
Carl Chenet 0fccf79089 Default to nofollow if URI parse fails 2017-05-20 15:33:17 +02:00
Carl Chenet 31b9ec672f Add nofollow when host is missing 2017-05-20 15:30:51 +02:00
Carl Chenet 19ac5369c5 Extract username regex 2017-05-20 15:29:35 +02:00
Carl Chenet 64330604e7 We want strikethrough too 2017-05-20 15:27:33 +02:00
Carl Chenet 9aac91a71e Fix up user links 2017-05-20 15:26:11 +02:00
Carl Chenet 9288c83ef5 Simple replacement with CommonMarker 2017-05-20 15:25:09 +02:00
joshua stein 0f498d3ee3 Markdowner: disable automatic profile linking for now 2016-02-11 10:54:02 -06:00
joshua stein a812f25c2f Markdowner: use Nokogiri for html rewriting
brute forcing changes by regexps gets things wrong sometimes, so use
nokogiri to parse the html output of rdiscount and do changes on
individual nodes, then turn back into a string

we lose the ability to move punctuation inside of auto-generated
links, but i don't see any easy/definitive way to do this properly.

closes #242
closes #209
2015-12-07 12:27:03 -06:00
joshua stein cbf14021ac pass :strict to RDiscount
Gives up the ability to use particular formatting inside of words in
order to prevent turning everything into a list that shouldn't be,
like a single "K." comment.

Closes #217
2015-08-12 09:25:51 -05:00
Serge Paquet 8fbf76b484 use activerecord query interface instead of deprecated finder methods 2013-12-25 16:43:50 -05:00
joshua stein f585d07aa8 don't do @username expansion in user profile about section
most users are probably putting @username to mean a twitter profile,
not a link to a lobste.rs profile
2013-03-23 21:05:13 -05:00
joshua stein b7e5447c1d allow embedded images in story text, but still not in comments 2012-09-17 13:24:29 -05:00
joshua stein cb5e05c461 minor cleanups after last merge 2012-09-16 15:51:25 -05:00
Robert J Samson ec1bcb9704 Added mentions in comments using @username convention. @username is linked to user profile in comment text, and notifications are available via email and pushover (with notification preferences) when a user is mention. 2012-09-10 13:40:33 -04:00
joshua stein 0752ebf1f3 disable markdown images 2012-09-07 17:21:39 -05:00
joshua stein f664734a40 fix markdown links that have trailing punctuation inside the url 2012-08-24 11:41:36 -05:00
joshua stein c63d35a65d use a common class for rdiscount options, filter out <h#> tags, add rel=nofollow 2012-08-24 11:41:35 -05:00
joshua stein 8dd109c49f drop custom markdowner for rdiscount 2012-08-24 10:57:42 -05:00
joshua stein 7b3cbdddee rss feeds! 2012-08-24 10:57:10 -05:00
joshua stein 578c96d653 more work 2012-06-30 14:14:35 -05:00
joshua stein 093747b796 initial work on conversion from php tree 2012-06-16 20:15:46 -05:00