mdless 2.1.25 → 2.1.26

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: 7e20c93485c7b39a9b31627f779b9d36c1671cbc13649b079edbe6a4b97a6cd5
4
- data.tar.gz: f0c098c1b89fc82d532dd446152e5f8c24a4ff5e8c9ea1cfa0db5cdb7c749419
3
+ metadata.gz: a1fb1a921f8fba70376fd696f457190e28222c5c07419dd13aad328323f29622
4
+ data.tar.gz: fb42bcba760484824b3ab6516206645890b8ddbe1274817894fc42780fac42fc
5
5
  SHA512:
6
- metadata.gz: e7769b7398ce44574926efe08e97ac52e1f0cd5e0d39ed47a10b34da6e596fd37d7b88a498bed4c8ce88a70019c09d7ccc5ec9c255de04147921ad3fea1b36c1
7
- data.tar.gz: ee7eabac8aacf7e268ac5708cdf97ade953d0dd1df50c1b83ca9dc20dd25a4a41c29068514b6ed3682d374e1c8b6ece6a2b6c484681b85213cc590d4293e2a5b
6
+ metadata.gz: 4325d830a288a4ba59fe4810f350de7c0259ec54a6aade29b440f4d5a71d542cc4b99de1f453d5b6c0f0aba50c5dc833b2311180c1cf8f7865d3c5ca2a6fb419
7
+ data.tar.gz: bbe50fdaa45cf08c2a77b19d3902ed82e72fde33b190b8fc62c98adbec96171b91f7f7d9aad213505ddcf7fa93c03603f4f7e8fcefffe5ee75084e58bce55263
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ 2.1.26
2
+
1
3
  2.1.25
2
4
  : YAML loading issues caused by safe_load
3
5
 
@@ -780,10 +780,12 @@ module Redcarpet
780
780
 
781
781
  lines.map do |line|
782
782
  line.sub!(/^(.*?:)[ \t]+(\S)/, '\1 \2')
783
- parts = line.match(/[ \t]*(.*?): +(.*?)$/)
784
- key = parts[1].gsub(/[^a-z0-9\-_]/i, '')
785
- value = parts[2].strip
786
- MDLess.meta[key] = value
783
+ parts = line.match(/^[ \t]*(\S.*?):[ \t]+(\S.*?)$/)
784
+ if parts
785
+ key = parts[1].gsub(/[^a-z0-9\-_]/i, '')
786
+ value = parts[2].strip
787
+ MDLess.meta[key] = value
788
+ end
787
789
  line = "#{color('metadata marker')}%#{color('metadata color')}#{line}"
788
790
  line += "\u00A0" * (longest - line.uncolor.strip.length) if (longest - line.uncolor.strip.length).positive?
789
791
  line + xc
@@ -264,6 +264,7 @@ module CLIMarkdown
264
264
  opts.delete(:section)
265
265
  opts.delete(:update_config)
266
266
  opts.delete(:update_theme)
267
+ opts.delete(:width)
267
268
  opts = opts.keys.map(&:to_s).sort.map { |k| [k.to_sym, opts[k.to_sym]] }.to_h
268
269
  f.puts YAML.dump(opts)
269
270
  warn "Config file saved to #{config}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.25'
4
+ VERSION = '2.1.26'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.25
4
+ version: 2.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra