mdless 2.1.67 → 2.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72e973e5e11163c97ba3389291d4820666f6900e3e78cbfe566b82d0c9ae82c0
4
- data.tar.gz: 18fd8e0f2f476b5404d318a36f75031c6ac7eb8158a414386a38bc43de43668c
3
+ metadata.gz: b736fda9420269317f44d74a9e864d817c7648285119626ac5ff15095a4a84d8
4
+ data.tar.gz: f498ce262b93a142782afc6df250603ef6635f939ba04b6a258dcfe2c38ce4da
5
5
  SHA512:
6
- metadata.gz: a753781c56e52ea216125796f8386586d3797c7864d853ed3f2500cb879c1c15b4365d6533e7b48f21059aa26421c9ff3b52e1aca8550dd0c9832d31de24471f
7
- data.tar.gz: 4b14eb66dafd52a0ef6549a96bd66dfe0438939a7e02dee6daffd5eb4b861e963bbd34ef5feee4e649bc456f72b0bf87e586966c0f37d5f8ee6048c5d824e02e
6
+ metadata.gz: c9e4488c56c7b4f1879336234b561ce033f606c0d4ca8f2ffb278f1bc0e6aec3c504d844eecfa14046576fd63f5c1c0e4e6e3e75c3f2f53e4a1d7eed5e937334
7
+ data.tar.gz: 2c833ddc688c8e4594a574d36e04a3d7654e693b95332cfecb33c55336cdb457f255e10033f5e5ab448246de2b8b5e81ab0b83ae6cfabd2c9d7de1627c88010f
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
+ 2.1.68
2
+ : Use at_exit so color reset still runs when the pager path exits early,
3
+
1
4
  2.1.66
5
+ : Reset terminal colors after pager exits
2
6
 
3
7
  2.1.65
4
8
  : add nbsp_padding flag to toggle Non breaking space characters as right-padding
data/README.md CHANGED
@@ -275,6 +275,8 @@ Note that if you do this, and you need uncolored output to pipe somewhere, you'l
275
275
  There are a few great options for Markdown viewing in the Terminal. If `mdless` doesn't do it for you, check out:
276
276
 
277
277
  - [Glow](https://github.com/charmbracelet/glow)
278
+ - [mdcat](https://github.com/BIRSAx2/mdcat)
279
+ - [Apex](https://github.com/ApexMarkdown/apex/wiki/Rendering-Markdown-In-Terminal)
278
280
  - [Frogmouth](https://github.com/Textualize/frogmouth)
279
281
 
280
282
  <!--END README-->
@@ -624,8 +624,8 @@ module CLIMarkdown
624
624
  out.uncolor! unless MDLess.options[:color]
625
625
 
626
626
  if MDLess.options[:pager]
627
+ at_exit { reset_terminal } if MDLess.options[:color]
627
628
  page(out)
628
- reset_terminal
629
629
  else
630
630
  $stdout.print out.rstrip
631
631
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.67'
4
+ VERSION = '2.1.68'
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.67
4
+ version: 2.1.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-06-25 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: redcarpet
@@ -163,6 +164,7 @@ homepage: http://brettterpstra.com/project/mdless/
163
164
  licenses:
164
165
  - MIT
165
166
  metadata: {}
167
+ post_install_message:
166
168
  rdoc_options:
167
169
  - "--title"
168
170
  - mdless
@@ -185,7 +187,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
187
  - !ruby/object:Gem::Version
186
188
  version: '0'
187
189
  requirements: []
188
- rubygems_version: 4.0.6
190
+ rubygems_version: 3.0.3.1
191
+ signing_key:
189
192
  specification_version: 4
190
193
  summary: A pager like less, but for Markdown files
191
194
  test_files: []