mdless 1.0.28 → 1.0.30

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: a69b03a6efd774409146752f36c9afecc2cb2c3efa5f2359138400b269f6eb44
4
- data.tar.gz: 855a0a8c4d71e2ff946324768d335c8403dd94d70c52a55a661e5c37c835e1ab
3
+ metadata.gz: 379923deb11ea6811d911e3bc0f1ddacbdc6bbb22ee736997e2bbab70fdb2406
4
+ data.tar.gz: 7fcafa17a1fc67a956a96f8d78ebb29df1b3d5e265ee5265cbd09155894b82c5
5
5
  SHA512:
6
- metadata.gz: fdb73be6939bf9584c0dc4c2615b2df1cfe020d8a6596d84351ac8caff9c2e94a9baa63ea73f69b200fe473f157c209d9409db767bb224d2c0c7da68970324f7
7
- data.tar.gz: 839937da5fc9ef1343d777303f86ed9db2ffd23356c3c743ca90d5af1d8cea41bd3c3f98ada940882faa1fedb930f4e4bf8c9850e6ef20700b83bd931906addf
6
+ metadata.gz: 06e5f6aa1559b74e033f64bd7837ee0a60822e54f8f635214fdddeaf39f24a22374c694789f01eba42e854861af00ddac76b789ecc442a0693edf02d888a5fd5
7
+ data.tar.gz: ae01fc4be978252f20be52a42b687d248755a908fd9701d218ce40ae27b7e3b9ded398023b3e4fed2a706532d326bd4bb8ef6c4f62b741761f6d7a5788a517fd
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # mdless
2
2
 
3
+ <!--README-->
3
4
  `mdless` is a utility that provides a formatted and highlighted view of Markdown files in Terminal.
4
5
 
5
6
  I often use iTerm2 in visor mode, so `qlmanage -p` is annoying. I still wanted a way to view Markdown files quickly and without cruft.
6
7
 
7
- ![mdless screenshot](screenshots/mdless.png)
8
+ <!--GITHUB-->![mdless screenshot](screenshots/mdless.png)<!--END GITHUB-->
9
+ <!--JEKYLL {% gif /uploads/2015/08/mdless.gif %} -->
8
10
 
9
11
  ## Features
10
12
 
@@ -34,7 +36,7 @@ Some OSs are missing `tput`, which is necessary for mdless.
34
36
  apt install ruby ncurses-utils
35
37
  gem install mdless
36
38
 
37
- ## Usage
39
+ ## Usage
38
40
 
39
41
  `mdless [options] path` or `cat [path] | mdless`
40
42
 
@@ -112,4 +114,4 @@ Use 'r' to reverse foreground and background colors. `r white on_black` would di
112
114
  To set a background color, use `on_[color]` with one of the 8 colors. This can be used with foreground colors in the same setting, e.g. `white on_black`.
113
115
 
114
116
  Use 'd' (dark) to indicate the darker version of a foreground color. On macOS (and possibly other systems) you can use the brighter version of a color by prefixing with "intense", e.g. `intense_red` or `on_intense_black`.
115
-
117
+ <!--END README-->
@@ -1009,7 +1009,7 @@ module CLIMarkdown
1009
1009
  if @options[:pager]
1010
1010
  page(out)
1011
1011
  else
1012
- $stdout.puts (out)
1012
+ $stdout.print (out.rstrip)
1013
1013
  end
1014
1014
  end
1015
1015
 
@@ -1052,8 +1052,6 @@ module CLIMarkdown
1052
1052
  ''
1053
1053
  end
1054
1054
 
1055
- puts [pg, args]
1056
-
1057
1055
  [pg, args]
1058
1056
  end
1059
1057
 
@@ -1,3 +1,3 @@
1
1
  module CLIMarkdown
2
- VERSION = '1.0.28'
2
+ VERSION = '1.0.30'
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.28
4
+ version: 1.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-31 00:00:00.000000000 Z
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake