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 +4 -4
- data/CHANGELOG.md +11 -7
- data/lib/mdless/console.rb +7 -1
- data/lib/mdless/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10e5cba01868258962b2953db75108db724dafda91d83363aff726fbae1056e2
|
|
4
|
+
data.tar.gz: 781055ed8f03a4f62403a26cd3dde900b6babd4c3fc132544b01d9f81d95119a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/mdless/console.rb
CHANGED
|
@@ -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}#{
|
|
71
|
+
"#{x}#{line}#{tail}#{xc}"
|
|
66
72
|
end.join("\n")
|
|
67
73
|
end
|
|
68
74
|
|
data/lib/mdless/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redcarpet
|