From b22ea2b9cc9dc98d81399e60f0d51ad469206d94 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 5 Jul 2014 03:07:03 -0700 Subject: [PATCH] don't embed inside [code] tags --- src/Linkification/Linkify.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index aa1fa69f3..bcb34ed21 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -62,8 +62,9 @@ Linkify = i = links.length while i-- - link = links[i] - Linkify.embedProcess (Linkify.makeLink link), @ + link = Linkify.makeLink links[i] + unless $.x 'ancestor::pre', link + Linkify.embedProcess link, @ return embedProcess: (link, post) ->