From 98c45951e9269a3806517d2af5aad37d71b0e9c7 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 25 Apr 2016 17:29:36 +0100 Subject: [PATCH] Fix quotes and snippet copy widget --- _config.yml | 9 +++++++++ js/copySnippets.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 92025bf..18934fd 100644 --- a/_config.yml +++ b/_config.yml @@ -3,6 +3,15 @@ safe: true lsi: false highlighter: rouge markdown: kramdown +encoding: UTF-8 +github: [metadata] +kramdown: + input: GFM + hard_wrap: false + smart_quotes: ["apos", "apos", "quot", "quot"] +gems: + - jekyll-coffeescript + - jekyll-paginate ### The following properties will change on a project-by-project basis diff --git a/js/copySnippets.js b/js/copySnippets.js index 934708c..11aba1e 100644 --- a/js/copySnippets.js +++ b/js/copySnippets.js @@ -8,7 +8,7 @@ $(document).ready(function() { Spring.configureCopyButtons = function() { if (ZeroClipboard.detectFlashSupport()) { - $(".highlight > pre").each(function(index) { + $("pre.highlight").each(function(index) { Spring.buildCopyButton($(this), index); } );