mdless 2.1.65 → 2.1.66

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: 05ec922e3d766c2ba7ba1e89f427e57666e1fedbe965e97448f96a727292459e
4
- data.tar.gz: 84b81ddd4cf08c34bf96db99b768afe81f4c7d10859164af991720ede8c2ab51
3
+ metadata.gz: 10e5cba01868258962b2953db75108db724dafda91d83363aff726fbae1056e2
4
+ data.tar.gz: 781055ed8f03a4f62403a26cd3dde900b6babd4c3fc132544b01d9f81d95119a
5
5
  SHA512:
6
- metadata.gz: 35453ae25117eb919ee039fd479951e8435108188a60eb0f8d4ae5d010b1c713808a8e247bae4212f3ea5ec9e47b34f2826ee90b1e576c676b9be21bb38e19a2
7
- data.tar.gz: 56525e3d80217a08dac2f26d5e6eeb763dd14eeed7f92f60016c1482b58419bb29d988460d4df49b324f2c2aad5cfb837362080a0cf93161960023fcb817b4db
6
+ metadata.gz: 9ba9480f94b687bcb8cd766ae606ae1938105b8b28171e4f39163cf2e6afccfd9cf850eecb908190b67e447828eeb29f7340ee080770614f56e7e44d53d4f1ab
7
+ data.tar.gz: aef9b191cf2f5bc86c0f478a9b9b19e7e5746f8c44478664febfef10bdb0aa4487cd78cfcaaba90beb840f3d91c47c4c8a47fa84f5beb29beb46b60d91a1d03c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ 2.1.66
2
+
3
+ 2.1.65
4
+ : add nbsp_padding flag to toggle Non breaking space characters as right-padding
5
+ : for code blocks.
6
+
7
+ 2.1.64
8
+
9
+ 2.1.63
10
+ : Missing logger in Ruby 4.0.1, added to gemspec
11
+
1
12
  2.1.60
2
13
 
3
14
  2.1.61
@@ -244,10 +255,3 @@
244
255
  : Better language detection for code blocks
245
256
  : when available, use italic font for italics and bold-italics emphasis
246
257
  : new colorization for html tags
247
-
248
- 2.1.63
249
- : Missing logger in Ruby 4.0.1, added to gemspec
250
-
251
- 2.1.64
252
-
253
- 2.1.65
@@ -59,10 +59,16 @@ module Redcarpet
59
59
  end
60
60
 
61
61
  def code_bg(input, width)
62
+ # NOTE: trailing reset is `xc` (\e[0;37m), not bare `x` (\e[0m).
63
+ # clean_escapes in converter.rb strips every bare \e[0m from the final
64
+ # output, so a bare-reset trailer would leak the code-block bg into the
65
+ # rest of the line (terminals with bce extend bg to the right edge).
66
+ # \e[0;37m embeds the same `0` reset parameter alongside a fg set, so
67
+ # it survives clean_escapes and still clears the bg before the newline.
62
68
  pad_char = MDLess.options[:nbsp_padding] ? "\u00A0" : ' '
63
69
  input.split(/\n/).map do |line|
64
70
  tail = line.uncolor.length < width ? pad_char * (width - line.uncolor.length) : ''
65
- "#{x}#{line}#{tail}#{x}"
71
+ "#{x}#{line}#{tail}#{xc}"
66
72
  end.join("\n")
67
73
  end
68
74
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.65'
4
+ VERSION = '2.1.66'
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.65
4
+ version: 2.1.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-12 00:00:00.000000000 Z
11
+ date: 2026-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet