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 +4 -4
- data/lib/mdless/converter.rb +3 -3
- 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: 155e4a600259101069f5c7fa7a2c142a31ad0a6b7ea12a3185bf4f5477ae0e09
|
4
|
+
data.tar.gz: b19dadf9f8ae825f22aeeab2ba1b2044d0e3830d27ecd7a98aab6fa966c3488c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da901c9f4224ff23bf23dc71163db735ea1e4ac6a997b5f4d61f61124cea2809468a98e8035264733a68ec4c5d4f3b21711901a4eef8e77464c58e1694089561
|
7
|
+
data.tar.gz: ddd59266c9f67885ad271cc89effa782ddd1f47fdcc201d0d7194e0bfb23a01ea00c4f88073c3fadebdff94b0a9e1fbf9b29500c1cc5f2935aa5a58fd2920c7c
|
data/lib/mdless/converter.rb
CHANGED
@@ -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
|
-
' -
|
1047
|
+
' -Xr'
|
1048
1048
|
when 'bat'
|
1049
|
-
' -p'
|
1049
|
+
' -p --pager="less -Xr"'
|
1050
1050
|
else
|
1051
1051
|
''
|
1052
1052
|
end
|
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: 1.0.
|
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-
|
11
|
+
date: 2021-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|