mdless 1.0.9 → 1.0.10

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
  SHA256:
3
- metadata.gz: bc660b0dcf5a9a8a2f7c412f0b99928d3f4e595299f39d4bef8d8a24c05004a8
4
- data.tar.gz: 01ca27394a92db99b7822a8f9275c0d4992d01b87e5b55aefb47aed38da3feda
3
+ metadata.gz: b304cbb274cf4909d011239377a99fbecad0ef8cff1eef0eae9bc18407531cfc
4
+ data.tar.gz: a51aa9a7f785dbfd33d3a8f635d8a2f58bd79ac95506ad49fc21b59822dd9da6
5
5
  SHA512:
6
- metadata.gz: e01ed15128d11cc0d696d6713d900e1288cfb4101ab30fb5901165d2c91fb236ee3291f497732f45745241493ade26eb4c717f38e55463c440cccb881b3149fe
7
- data.tar.gz: 5464498d9c82b915e2da0e0a6934c95fe3f07e31f16364efae57aaf94eb3d2e11f65c2cb6658136c7dbbd10fa60198eb5e2c6b73bd6498d24f32271ac8147f21
6
+ metadata.gz: b245917f11ecf8806dc34240e5b039cb5685b68ee0b9d0c52cede089b5567bee0ebb9f68960bd59e7c54093951712577f845b03a13f75c076c6e64d41ee0e0dd
7
+ data.tar.gz: 8a267746ee40a94809750a1717076126e858b8d146bcb9ee11d4234270726fd580bc82617fba70889d7c65e2f1049eff55db249d947cc759fa494bef6058d5cd
@@ -209,6 +209,7 @@ module CLIMarkdown
209
209
  ]
210
210
  }
211
211
  end
212
+
212
213
  @headers
213
214
  end
214
215
 
@@ -797,8 +798,8 @@ module CLIMarkdown
797
798
 
798
799
  # Headlines
799
800
  @headers.each {|h|
800
- input.sub!(/^#{h[2]}/) do |m|
801
- pad = ""
801
+ input.sub!(/^#{Regexp.escape(h[2])}/m) do |m|
802
+ pad = ''
802
803
  ansi = ''
803
804
  case h[0].length
804
805
  when 1
@@ -1,3 +1,3 @@
1
1
  module CLIMarkdown
2
- VERSION = '1.0.9'
2
+ VERSION = '1.0.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-07 00:00:00.000000000 Z
11
+ date: 2020-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake