documentation-editor 0.12.2 → 0.12.3

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: 49eaa60b04646557dcfcb97349043c457b2704fd
4
- data.tar.gz: 025e8eba7108f0df429acd698e4214e98e4c5657
3
+ metadata.gz: 7320c6bfda9dcfc05ff0ec7f79e8ec4d03e083a6
4
+ data.tar.gz: 39138134197e3cc0f104a2bd4481a874d15e3856
5
5
  SHA512:
6
- metadata.gz: a509d20e844d232c3b6cb865d494ddf0455dedf795e5446965d218c3fa7be35d4e992ea9cd77cb725090976c50c4cd562b75ad76efb24056c72539b623e1392a
7
- data.tar.gz: 37db3169bfa92e60d1c9b6274af85f0a1f5433e000790d59817f97bf31983ab012104bd88eb27ed3dd9a28d6b7396a6c25b094a3c883d90adc5973b9cddb6f48
6
+ metadata.gz: 4957e7a1483dcb7129cedf5f42cd160e21a6d8b4a22a9fa745ec4da14f3720cbb0df0a55724f247a764f28bade9c5b295ce6914e8745ed737a030fb2a367bc3b
7
+ data.tar.gz: 4dd7112e024284f3c88216bf51537d95710642b7106a73c2a3e06b7e2fea291cb7e40de5e44a9cee32ef96612ed2cba8619048a919cf5069af83a31a360844ef
@@ -6,7 +6,7 @@ module DocumentationEditor
6
6
  options = defaulted(options)
7
7
  html = parse_document(options).to_html
8
8
  # lower titles
9
- html.gsub!(/<h([1-6])/) { |m| "<h#{$1.to_i + 1}" } if DocumentationEditor::Config.lower_title_levels
9
+ html.gsub!(/<(\/?)h([1-6])/) { |m| "<#{$1}h#{$2.to_i + 1}" } if DocumentationEditor::Config.lower_title_levels
10
10
  # resolve the variables
11
11
  html = resolve_variables(options, html)
12
12
  # resolve the code condition block
@@ -1,3 +1,3 @@
1
1
  module DocumentationEditor
2
- VERSION = "0.12.2"
2
+ VERSION = "0.12.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentation-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2016-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails