From 052036b0c295739e6fa53b4ce2bcdd467803ca25 Mon Sep 17 00:00:00 2001 From: Robert Lord Date: Wed, 9 Jul 2014 22:36:44 -0700 Subject: [PATCH 1/5] Fix incorrect header nesting in redcarpet patch Spotted by @moizjv, thanks! --- lib/redcarpet_header_fix.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redcarpet_header_fix.rb b/lib/redcarpet_header_fix.rb index 170d4b8..749607e 100644 --- a/lib/redcarpet_header_fix.rb +++ b/lib/redcarpet_header_fix.rb @@ -1,7 +1,7 @@ module RedcarpetHeaderFix def header(text, level, id) clean_id = id.gsub(/[\.]/, '-').gsub(/[^a-zA-Z0-9\-_]/, '') - "#{text}" + "#{text}" end end From f1d92f01ddbbace47295bbf2618cd9861b710802 Mon Sep 17 00:00:00 2001 From: Moiz Virani Date: Mon, 14 Jul 2014 14:33:06 -0700 Subject: [PATCH 2/5] Adding appium docs to examples --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 91eb239..a09a650 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ Examples of Slate in the Wild * [Drcaban's Build a Quine tutorial](http://drcabana.github.io/build-a-quine/#introduction) * [PricePlow API docs](https://www.priceplow.com/api/documentation) * [Emerging Threats API docs](http://apidocs.emergingthreats.net/) +* [Appium docs](http://appium.io/slate/en/master) (Feel free to add your site to this list in a pull request!) From 54e4408d8c2ba2972f7791bc13bb2e689201cd2b Mon Sep 17 00:00:00 2001 From: Sam Dozor Date: Wed, 16 Jul 2014 16:53:38 -0400 Subject: [PATCH 3/5] Changing the code-font font-family to prefer Menlo and Consolas over Monaco, and adding more back-up fonts. --- source/stylesheets/variables.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/stylesheets/variables.scss b/source/stylesheets/variables.scss index 6e29c1c..0c08956 100644 --- a/source/stylesheets/variables.scss +++ b/source/stylesheets/variables.scss @@ -75,7 +75,7 @@ $h1-margin-bottom: 21px; // padding under the largest header tags } %code-font { - font-family: Monaco, "Courier New", monospace; + font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; font-size: 12px; } From 82a99d55373b0aca34ebf57d5d7c278a4f6bb3e9 Mon Sep 17 00:00:00 2001 From: Robert Lord Date: Thu, 17 Jul 2014 09:41:10 -0700 Subject: [PATCH 4/5] Increase line height for new font, add quotes around fonts --- source/stylesheets/variables.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/stylesheets/variables.scss b/source/stylesheets/variables.scss index a845019..4c9bae0 100644 --- a/source/stylesheets/variables.scss +++ b/source/stylesheets/variables.scss @@ -78,8 +78,9 @@ $phone-width: $tablet-width - $nav-width; // min width before reverting to mobil } %code-font { - font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; + font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif; font-size: 12px; + line-height: 1.5; } From 8e7b03b64e0dcb7d3b291a513bc52141bc7f8868 Mon Sep 17 00:00:00 2001 From: Robert Lord Date: Sun, 27 Jul 2014 23:21:24 -0700 Subject: [PATCH 5/5] Upgrade redcarpet, fix header patch, fixes #92 --- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- lib/redcarpet_header_fix.rb | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01bef8f..8adca15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## Version 1.1 + +*July 27th, 2014* + +**Fixes:** + +- Finally, a fix for the redcarpet upgrade bug + ## Version 1.0 *July 2, 2014* diff --git a/Gemfile.lock b/Gemfile.lock index f439473..a972054 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -96,7 +96,7 @@ GEM ffi (>= 0.5.0) rb-kqueue (0.2.2) ffi (>= 0.5.0) - redcarpet (3.1.1) + redcarpet (3.1.2) ref (1.0.5) rouge (1.3.3) ruby18_source_location (0.2) diff --git a/lib/redcarpet_header_fix.rb b/lib/redcarpet_header_fix.rb index 749607e..72883ce 100644 --- a/lib/redcarpet_header_fix.rb +++ b/lib/redcarpet_header_fix.rb @@ -1,6 +1,6 @@ module RedcarpetHeaderFix - def header(text, level, id) - clean_id = id.gsub(/[\.]/, '-').gsub(/[^a-zA-Z0-9\-_]/, '') + def header(text, level) + clean_id = text.downcase.gsub(/( +|\.+)/, '-').gsub(/[^a-zA-Z0-9\-_]/, '') "#{text}" end end