mdless 1.0.22 → 1.0.27

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: ea19ef57c9cdd3b8800a854cc342e518c3c5acca0a2bfd6806f30970686e37e7
4
- data.tar.gz: aaf0111e1b7777c06ddb149032985665184f92c6a34e4d5d6e7a5abecf691289
3
+ metadata.gz: 155e4a600259101069f5c7fa7a2c142a31ad0a6b7ea12a3185bf4f5477ae0e09
4
+ data.tar.gz: b19dadf9f8ae825f22aeeab2ba1b2044d0e3830d27ecd7a98aab6fa966c3488c
5
5
  SHA512:
6
- metadata.gz: 11e08991457fd1c94698666be37e40e38c59753b4437e94c01a45a0215d9fbf7fea00c6bedbbb5408451f8ea8402897dcf81d6a8f757950669c2c85f1371ba48
7
- data.tar.gz: 997cbd5836733b2740ae15d344764c6e303d41d77ec760392a9bad6ccdc08f8aaa2457601f0385449964826d423e9f26036c5d843946e50a94ecb922f5ce4e3b
6
+ metadata.gz: da901c9f4224ff23bf23dc71163db735ea1e4ac6a997b5f4d61f61124cea2809468a98e8035264733a68ec4c5d4f3b21711901a4eef8e77464c58e1694089561
7
+ data.tar.gz: ddd59266c9f67885ad271cc89effa782ddd1f47fdcc201d0d7194e0bfb23a01ea00c4f88073c3fadebdff94b0a9e1fbf9b29500c1cc5f2935aa5a58fd2920c7c
@@ -634,7 +634,7 @@ module CLIMarkdown
634
634
  else
635
635
  first_line = m[3].to_s.split(/\n/)[0]
636
636
 
637
- if first_line =~ /^\s*#!/
637
+ if first_line =~ /^\s*#!.*\/.+/
638
638
  shebang = first_line.match(/^\s*#!.*\/(?:env )?([^\/]+)$/)
639
639
  language = shebang[1]
640
640
  code_block = m[3]
@@ -1044,9 +1044,9 @@ module CLIMarkdown
1044
1044
  when 'more'
1045
1045
  ' -r'
1046
1046
  when 'less'
1047
- ' -r'
1047
+ ' -Xr'
1048
1048
  when 'bat'
1049
- ' -p'
1049
+ ' -p --pager="less -Xr"'
1050
1050
  else
1051
1051
  ''
1052
1052
  end
@@ -1,3 +1,3 @@
1
1
  module CLIMarkdown
2
- VERSION = '1.0.22'
2
+ VERSION = '1.0.27'
3
3
  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: 1.0.22
4
+ version: 1.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-15 00:00:00.000000000 Z
11
+ date: 2021-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake