From 0f498d3ee36db325a9a69b5aebe6a7a91c117e3a Mon Sep 17 00:00:00 2001 From: joshua stein Date: Thu, 11 Feb 2016 10:54:02 -0600 Subject: [PATCH] Markdowner: disable automatic profile linking for now --- extras/markdowner.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extras/markdowner.rb b/extras/markdowner.rb index 597ba70..095238d 100644 --- a/extras/markdowner.rb +++ b/extras/markdowner.rb @@ -25,6 +25,10 @@ class Markdowner h[:rel] = "nofollow" end + # XXX: t.replace(tx) unescapes HTML, so disable for now. this probably + # needs to split text into separate nodes and then replace the @username + # with a proper 'a' node +if false unless opts[:disable_profile_links] # make @username link to that user's profile ng.search("//text()").each do |t| @@ -44,6 +48,7 @@ class Markdowner t.replace(tx) end end +end ng.at_css("body").inner_html end