middleman-hashicorp 0.3.12 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e058b5c2f03d2bf2e43b168e10ab1d40ee7966dd
4
- data.tar.gz: c7c71b861fb19117f76c3ec72917f1f3961429fa
3
+ metadata.gz: 1fd56a22a40b1ad7c4f7b07e8acf0c41aeabfe85
4
+ data.tar.gz: 439ba649970686c407027c2bb4bc5533e21078d7
5
5
  SHA512:
6
- metadata.gz: b5d7799fba65bd67684c9afbc82bb3182a61c1970e359b5737b2eca6df90e108b4587974a001ac1ce9c5cd890080e7b143865dac48b056c91b35036df7dfb187
7
- data.tar.gz: 0b3c7a23ad8c3081c072926e4d35347f2c7ab63cdeb2132481922473819d98c5813b8d0417b3f3eb6e7635de4e6d7e925a519673c154b646f6feff22f7e948ea
6
+ metadata.gz: dd2ef764799095db9ebcc13266f1c7cd0d00709b3e8b6f47fb2263e9783daaba7e0efe91abd16a6d4f37e706d3977ca59d55c04bedf0609d8ae4f62892c77d00
7
+ data.tar.gz: 67b6d40035aaeadbe730ffb5ec7f31b0dd2cd53215cc7d92b06c109024619609c31165d4ed1139906bd1bc9e42ef67873f517f24557fe9e686501ef536a3d202
data/README.md CHANGED
@@ -67,6 +67,16 @@ Customizations
67
67
  - During build, assets are hashed
68
68
  - During build, gzipped assets are also created
69
69
 
70
+ ### IE Compatibility
71
+
72
+ There are bundled things that make IE behave nicely. Include them like this:
73
+
74
+ ```html
75
+ <!--[if lt IE 9]>
76
+ <%= javascript_include_tag "ie-compat" %>
77
+ <![endif]-->
78
+ ```
79
+
70
80
  ### Turbolinks
71
81
 
72
82
  Turbolinks highjack links on the same domain and use AJAX to dynamically update
@@ -27,7 +27,7 @@
27
27
  <p class="mega-nav-h2">Any infrastructure for any&nbsp;application</p>
28
28
  </div>
29
29
  <div class="mega-nav-body-header-item">
30
- <a href="#" class="mega-nav-btn"><img src="<%= image_path("mega-nav/logo-hashicorp.svg") %>" alt="HashiCorp Logo" /> Learn the HashiCorp Suite <svg class="mega-nav-icon mega-nav-icon-angle-right" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mega-nav-icon-angle"></use></svg></a>
30
+ <a href="https://www.hashicorp.com/devops-defined/" class="mega-nav-btn"><img src="<%= image_path("mega-nav/logo-hashicorp.svg") %>" alt="HashiCorp Logo" /> Learn the HashiCorp Suite <svg class="mega-nav-icon mega-nav-icon-angle-right" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mega-nav-icon-angle"></use></svg></a>
31
31
  </div>
32
32
  </div>
33
33
  <div class="mega-nav-body-grid">
@@ -28,7 +28,7 @@ class Middleman::HashiCorp::RedcarpetHTML < ::Middleman::Renderers::MiddlemanRed
28
28
  # @param [String] list_type
29
29
  #
30
30
  def list_item(text, list_type)
31
- md = text.match(/(<code>(.+?)<\/code>)/)
31
+ md = text.match(/\A(?:<p>)?(<code>(.+?)<\/code>)/)
32
32
  linked = !text.match(/\A(<p>)?<a(.+?)>(.+?)<\/a>\s*?[-:]?/).nil?
33
33
 
34
34
  if !md.nil? && !linked
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module HashiCorp
3
- VERSION = "0.3.12"
3
+ VERSION = "0.3.13"
4
4
  end
5
5
  end
@@ -111,6 +111,23 @@ module Middleman::HashiCorp
111
111
  expect(markdown).to render_html(output)
112
112
  end
113
113
 
114
+ it "does not add links when the code is not first" do
115
+ markdown = <<-EOH.gsub(/^ {8}/, "")
116
+ - hello - no links here
117
+ - two - has `code` inside
118
+ EOH
119
+ output = <<-EOH.gsub(/^ {8}/, "")
120
+ <ul>
121
+ <li>hello - no links here
122
+ </li>
123
+ <li>two - has <code>code</code> inside
124
+ </li>
125
+ </ul>
126
+ EOH
127
+
128
+ expect(markdown).to render_html(output)
129
+ end
130
+
114
131
  it "supports markdown inside HTML" do
115
132
  markdown = <<-EOH.gsub(/^ {8}/, "")
116
133
  This is some markdown
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-hashicorp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.6.8
236
+ rubygems_version: 2.6.10
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: A series of helpers for consistency among HashiCorp's middleman sites