mdless 1.0.10 → 1.0.12

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: b304cbb274cf4909d011239377a99fbecad0ef8cff1eef0eae9bc18407531cfc
4
- data.tar.gz: a51aa9a7f785dbfd33d3a8f635d8a2f58bd79ac95506ad49fc21b59822dd9da6
3
+ metadata.gz: 29be6a1b5ddb07f00761ef4ecba63116f6b0d3bbe78545536afb5382aa660a53
4
+ data.tar.gz: d5d08419668aab7a534a2c67ccb27e0a3a8d7d0b10e1793c6b4a087c591312ec
5
5
  SHA512:
6
- metadata.gz: b245917f11ecf8806dc34240e5b039cb5685b68ee0b9d0c52cede089b5567bee0ebb9f68960bd59e7c54093951712577f845b03a13f75c076c6e64d41ee0e0dd
7
- data.tar.gz: 8a267746ee40a94809750a1717076126e858b8d146bcb9ee11d4234270726fd580bc82617fba70889d7c65e2f1049eff55db249d947cc759fa494bef6058d5cd
6
+ metadata.gz: a76b8fc03d9300c13bc58f73f80db23226cb01a6bf3141718c3cd96c7d947a4db02fcd36b8666ada394749677f2debbebf591e682418ce637ddf3df67d899ff1
7
+ data.tar.gz: 31485111a1836fcc4105a2d33addf4f18ac3180ce0ba7c35f6cf7b85a1d10d46666537478de913672548186f9d25048743340bf86747bd811ba52817172f21a5
@@ -154,6 +154,7 @@ module CLIMarkdown
154
154
  $stderr.puts "No input"
155
155
  Process.exit 1
156
156
  end
157
+
157
158
  end
158
159
 
159
160
  def color(key)
@@ -286,6 +287,7 @@ module CLIMarkdown
286
287
  end
287
288
 
288
289
  def cleanup_tables(input)
290
+
289
291
  in_table = false
290
292
  header_row = false
291
293
  all_content = []
@@ -312,6 +314,7 @@ module CLIMarkdown
312
314
  end
313
315
 
314
316
  table = this_table.join("\n").strip
317
+
315
318
  begin
316
319
  formatted = MDTableCleanup.new(table)
317
320
  res = formatted.to_md
@@ -336,6 +339,7 @@ module CLIMarkdown
336
339
 
337
340
  def clean_markers(input)
338
341
  input.gsub!(/^(\e\[[\d;]+m)?[%~] ?/,'\1')
342
+ input.gsub!(/(\e\[[\d;]+m)?@@@(\e\[[\d;]+m)?$/,'')
339
343
  input
340
344
  end
341
345
 
@@ -451,7 +455,7 @@ module CLIMarkdown
451
455
  new_code_line,
452
456
  xc
453
457
  ].join
454
- end.join("\n") + "\n"
458
+ end.join("\n")
455
459
  end
456
460
 
457
461
  [
@@ -478,6 +482,7 @@ module CLIMarkdown
478
482
 
479
483
  def convert_markdown(input)
480
484
  @headers = get_headers(input)
485
+ input += "\n\n@@@"
481
486
  # yaml/MMD headers
482
487
  in_yaml = false
483
488
  if input.split("\n")[0] =~ /(?i-m)^---[ \t]*?(\n|$)/
@@ -80,7 +80,8 @@ module CLIMarkdown
80
80
  'border' => 'd black',
81
81
  'header' => 'yellow',
82
82
  'divider' => 'b black',
83
- 'color' => 'white'
83
+ 'color' => 'white',
84
+ 'bg' => 'on_black'
84
85
  },
85
86
  'html' => {
86
87
  'brackets' => 'd yellow on_black',
@@ -1,3 +1,3 @@
1
1
  module CLIMarkdown
2
- VERSION = '1.0.10'
2
+ VERSION = '1.0.12'
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.10
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-15 00:00:00.000000000 Z
11
+ date: 2020-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubygems_version: 3.0.6
106
+ rubygems_version: 3.0.3
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: A pager like less, but for Markdown files