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
This commit is contained in:
Juanito Fatas 2014-06-24 06:27:04 +08:00
parent 64c62d35bd
commit 0d9e58f879
1 changed files with 6 additions and 0 deletions

View File

@ -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();
});