From 0d9e58f879893a28ad3eedc4016ab66920f92604 Mon Sep 17 00:00:00 2001 From: Juanito Fatas Date: Tue, 24 Jun 2014 06:27:04 +0800 Subject: Disable autolink in example code blocks in guides. /cc @chancancode @robin850 configuration reference: http://alexgorbatchev.com/SyntaxHighlighter/manual/configuration/ Related issues: * https://github.com/vmg/redcarpet/issues/334 * https://github.com/docrails-tw/guides/issues/62 --- guides/assets/javascripts/guides.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guides/assets/javascripts/guides.js b/guides/assets/javascripts/guides.js index e4d25dfb21..a9c7f0d016 100644 --- a/guides/assets/javascripts/guides.js +++ b/guides/assets/javascripts/guides.js @@ -51,3 +51,9 @@ var guidesIndex = { window.location = url; } }; + +// Disable autolink inside example code blocks of guides. +$(document).ready(function() { + SyntaxHighlighter.defaults['auto-links'] = false; + SyntaxHighlighter.all(); +}); -- cgit v1.2.3