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 +4 -4
- data/lib/mdless/converter.rb +6 -1
- data/lib/mdless/theme.rb +2 -1
- data/lib/mdless/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29be6a1b5ddb07f00761ef4ecba63116f6b0d3bbe78545536afb5382aa660a53
|
4
|
+
data.tar.gz: d5d08419668aab7a534a2c67ccb27e0a3a8d7d0b10e1793c6b4a087c591312ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a76b8fc03d9300c13bc58f73f80db23226cb01a6bf3141718c3cd96c7d947a4db02fcd36b8666ada394749677f2debbebf591e682418ce637ddf3df67d899ff1
|
7
|
+
data.tar.gz: 31485111a1836fcc4105a2d33addf4f18ac3180ce0ba7c35f6cf7b85a1d10d46666537478de913672548186f9d25048743340bf86747bd811ba52817172f21a5
|
data/lib/mdless/converter.rb
CHANGED
@@ -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")
|
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|$)/
|
data/lib/mdless/theme.rb
CHANGED
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.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-
|
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.
|
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
|