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 +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/mdless/console.rb +6 -4
- data/lib/mdless/converter.rb +1 -0
- data/lib/mdless/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1fb1a921f8fba70376fd696f457190e28222c5c07419dd13aad328323f29622
|
4
|
+
data.tar.gz: fb42bcba760484824b3ab6516206645890b8ddbe1274817894fc42780fac42fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4325d830a288a4ba59fe4810f350de7c0259ec54a6aade29b440f4d5a71d542cc4b99de1f453d5b6c0f0aba50c5dc833b2311180c1cf8f7865d3c5ca2a6fb419
|
7
|
+
data.tar.gz: bbe50fdaa45cf08c2a77b19d3902ed82e72fde33b190b8fc62c98adbec96171b91f7f7d9aad213505ddcf7fa93c03603f4f7e8fcefffe5ee75084e58bce55263
|
data/CHANGELOG.md
CHANGED
data/lib/mdless/console.rb
CHANGED
@@ -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(
|
784
|
-
|
785
|
-
|
786
|
-
|
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
|
data/lib/mdless/converter.rb
CHANGED
@@ -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}"
|
data/lib/mdless/version.rb
CHANGED