mdless 2.1.33 → 2.1.35

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: 28e57a0026d9d1c04661fa866f6e66ad2c657d27651882a740b23c1966b28313
4
- data.tar.gz: 3674e77fab13e7d0f8a80a4293c316579691cf4e4c3eef57863c61a677e31753
3
+ metadata.gz: da85e4e5c08df785aec51ae04a636e77f173440b2f28a1cc87625a67914274bc
4
+ data.tar.gz: c8479318f320a7be17eca74adaf65a117e9bfd5e1f70ae3e262d8ebf9f29061e
5
5
  SHA512:
6
- metadata.gz: eda195225bc5efc055263da9e1f5b329d8342cb5441c91e04da42b24996047a4fbb0a179657d8b654e2646f945e9887948f78fd4f04dc2faa9b39f8187a2f132
7
- data.tar.gz: 7c63899a2e3510d4c568be1b67c39cd3d3449250bece779c296e37ea0c1b1c49d255e90056ae139206c1b5a0e252ab1a8dd1bb5d3f0d0ffae521e4e1e51cf585
6
+ metadata.gz: cada4d6a9d10665cb027a3120e8e83023a51ab51f868724a644db8da52b27418d30312d200ce466e50b4f7dbc5b5168aa6802fb445afabfd76ee57bb8b494842
7
+ data.tar.gz: 2b99883ec4a395be78c2a621de0aca45c52e63bef9004ef056d82e682d6b6c21b66fe7cf3ef1f4b89c9aa1af8346236323f12b5271993695707358ea94ec098a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
- 2.1.33
1
+ 2.1.26
2
2
 
3
3
  2.1.32
4
+
5
+ 2.1.35
6
+ : Ruby 2.7 error (again)
7
+
8
+ 2.1.30
4
9
  : Error when $EDITOR is not defined
5
10
 
6
11
  2.1.29
@@ -33,7 +38,6 @@
33
38
  : TaskPaper file with metadata causing negative argument error
34
39
  : Remove `<br>` from metadata
35
40
  : YAML metadata and negative line lengths
36
- >>>>>>> release/2.1.30
37
41
 
38
42
  2.1.14
39
43
  : Spaces on a line separating metadata won't break display
data/README.md CHANGED
@@ -264,4 +264,11 @@ end
264
264
 
265
265
  Note that if you do this, and you need uncolored output to pipe somewhere, you'll need to use `command cat FILE` to revert to the built-in `cat`. Otherwise your text will be full of the escape codes that `mdless` uses to colorize the output.
266
266
 
267
+ ## Similar Projects
268
+
269
+ There are a few great options for Markdown viewing in the Terminal. If `mdless` doesn't do it for you, check out:
270
+
271
+ - [Glow](https://github.com/charmbracelet/glow)
272
+ - [Frogmouth](https://github.com/Textualize/frogmouth)
273
+
267
274
  <!--END README-->
@@ -753,7 +753,7 @@ module Redcarpet
753
753
  m = Regexp.last_match
754
754
  MDLess.log.info('Processing YAML header')
755
755
  begin
756
- MDLess.meta = YAML.load(m['content']).map { |k, v| "#{k.downcase}" => v }
756
+ MDLess.meta = YAML.load(m['content']).each_with_object({}) { |(k, v), h| h[k.downcase] = v }
757
757
  rescue Psych::DisallowedClass => e
758
758
  @log.error('Error reading YAML header')
759
759
  @log.error(e)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.33'
4
+ VERSION = '2.1.35'
5
5
  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: 2.1.33
4
+ version: 2.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-15 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.4.0.dev
161
+ rubygems_version: 3.2.16
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: A pager like less, but for Markdown files