mdless 2.0.24 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/lib/mdless/console.rb +1 -1
- data/lib/mdless/converter.rb +7 -1
- data/lib/mdless/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35e371ff2a27072cc155a2056f76c99899d65b775ecf00afb5bc661879157c0a
|
4
|
+
data.tar.gz: a0518a46da56d645de9d84e2ab3089939b8893cd5d50629904462444737d4fe3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba809f82f5b8c6fbc5dfc46a39f8c6fefb89deb331038ecfc8c685997ab0826c91bc6585312d4659e3aefeb5baeb4bdeb89f20eb3f02777d46697d9f8f14018
|
7
|
+
data.tar.gz: 100e24adb92faa319a0402cd771a436b52e203c13e3788c83fcdb1f4d5632078c096ad3d7cb9616adbc63aa46861c9375b1b0b28f80269ea63f00246c4443e2f
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
2.0.24
|
2
|
+
: Update readme with config descriptions
|
3
|
+
: Code blocks containing YAML with `---` as the first line were being interpreted as Setext headers
|
4
|
+
: Line breaks being consumed when matching tags for highlighting
|
5
|
+
|
6
|
+
2.0.21
|
7
|
+
: When converting to reference links, catch links that have been wrapped
|
8
|
+
|
9
|
+
2.0.20
|
10
|
+
: Subsequent tables inheriting first table's column count
|
11
|
+
|
12
|
+
2.0.19
|
13
|
+
: `--section` can take string arguments to be fuzzy matched against headlines
|
14
|
+
: Code refactoring
|
15
|
+
: TaskPaper formatting now responds to --section with string matches
|
16
|
+
: TaskPaper formatting now responds to --list to list projects
|
17
|
+
: TaskPaper auto detection double checks content by removing all projects and tasks and seeing if there's anything left before deciding it's not TaskPaper content
|
18
|
+
: Extra line break before headers
|
19
|
+
: Wrap block quotes to max width
|
20
|
+
: Missing first headline in output
|
21
|
+
: Long links that were wrapped were not being replaced when converting to reference links
|
22
|
+
|
23
|
+
2.0.18
|
24
|
+
: Better handling of default options set in config
|
25
|
+
: More expansive detection of screen width, no longer just dependent on `tput` being available
|
26
|
+
: Only extend borders and backgrounds on code blocks to the length of the longest line
|
27
|
+
: Include the language in the top border of code blocks, if available
|
28
|
+
: Validate themes and lexers using `pygmentize` output, with fallbacks
|
29
|
+
: If width specified in config is greater than display columns, fall back to display columns as max width
|
30
|
+
: Metadata (MMD/YAML) handling on TaskPaper files
|
31
|
+
|
32
|
+
2.0.17
|
33
|
+
: Re-order command line options for more readable help output (`mdless -h`)
|
34
|
+
|
35
|
+
2.0.15
|
36
|
+
: Highlight [[wiki links]]
|
37
|
+
: TaskPaper rendering refinements
|
38
|
+
: Handle TaskPaper tasks without project if --taskpaper is enabled
|
39
|
+
: Wiki link highlighting is optional with `--[no-]wiki-links` and can be set in config
|
40
|
+
: Nil error on short files
|
41
|
+
: Project regex matching `- PROJECT NAME:`
|
42
|
+
: If taskpaper is true, avoid all parsing other than tasks, projects, notes, and tags
|
43
|
+
|
44
|
+
2.0.8
|
45
|
+
: Image rendering with chafa improved, still have to figure out a way to make sure content breaks around the embedded image
|
46
|
+
: Only detect mmd headers on first line
|
47
|
+
|
48
|
+
2.0.7
|
49
|
+
: Render links as reference links at the end of the file (`--links ref`) or per-paragraph (`--links para`). Defaults to inline (`--links inline`)
|
50
|
+
: Pad numbers on headline listing to preserve indentation
|
51
|
+
|
52
|
+
2.0.6
|
53
|
+
: Render links as reference links at the end of the file (`--links ref`) or per-paragraph (`--links para`). Defaults to inline (`--links inline`)
|
54
|
+
: Pad numbers on headline listing to preserve indentation
|
55
|
+
|
56
|
+
2.0.5
|
57
|
+
: Better highlighting of metadata (both YAML and MMD)
|
58
|
+
|
59
|
+
2.0.4
|
60
|
+
: False MMD metadata detection
|
61
|
+
|
62
|
+
2.0.0
|
63
|
+
: Rely on Redcarpet for Markdown parsing, far more accurate with a few losses I'll handle over time
|
64
|
+
: Config file at ~/.config/mdless/config.yml
|
65
|
+
: Allow inlining of footnotes
|
66
|
+
: Nested list indentation
|
67
|
+
|
68
|
+
1.0.37
|
69
|
+
: Comments inside of fenced code rendering as ATX headlines
|
70
|
+
|
71
|
+
1.0.35
|
72
|
+
: Improved code block parsing and handling
|
73
|
+
|
74
|
+
1.0.33
|
75
|
+
: Allow multiple sections with `-s 3,4,5`
|
76
|
+
|
77
|
+
1.0.32
|
78
|
+
: Errors in Ruby 3.2
|
79
|
+
|
80
|
+
1.0.30
|
81
|
+
: Errant pager output
|
82
|
+
|
83
|
+
1.0.29
|
84
|
+
: Allow $ markers for equations
|
85
|
+
: Don't force white foreground when resetting color (allow default terminal color to be foreground
|
86
|
+
: Reset color properly when span elements are used in list items
|
87
|
+
: Code block border wrapping
|
88
|
+
: Use template settings for all footnote highlights
|
89
|
+
: Errant pager output1.0.13
|
90
|
+
: Fix for tables being eaten at the end of a document
|
91
|
+
|
92
|
+
1.0.10
|
93
|
+
: Fix for regex characters in headlines breaking rendering
|
94
|
+
|
95
|
+
1.0.9
|
96
|
+
: Catch error when breaking pipe
|
97
|
+
|
98
|
+
1.0.8
|
99
|
+
: Improved table formatting
|
100
|
+
|
101
|
+
1.0.7
|
102
|
+
: Force rewrite of damaged themes
|
103
|
+
: Add iTerm marks to h1-3 when using iTerm and no pager, so you can navigate with <kbd>⌘⇧↑/↓</kbd>
|
104
|
+
|
105
|
+
1.0.6
|
106
|
+
: Fresh theme write was outputting `--- default` instead of a theme
|
107
|
+
: Better code span color
|
108
|
+
: If `bat` is the pager, force into `--plain` mode
|
109
|
+
|
110
|
+
1.0.5
|
111
|
+
: Stop adjusting for highest header
|
112
|
+
|
113
|
+
1.0.3
|
114
|
+
: Sort options order in `--help` output
|
115
|
+
: Allow multiple theme files, `--theme=NAME` option
|
116
|
+
|
117
|
+
1.0.2
|
118
|
+
: Handle emphasis inside of quotes and parenthesis
|
119
|
+
: Make emphasis themeable in mdless.theme
|
120
|
+
: Fix for `-I` throwing error if imgcat isn't installed
|
121
|
+
: remove backslash from escaped characters
|
122
|
+
|
123
|
+
1.0.1
|
124
|
+
: Fix for header listing justification
|
125
|
+
: Exclude horizontal rules `---` in header list
|
126
|
+
|
127
|
+
1.0.0
|
128
|
+
: Just a version bump because I think it deserves it at this point.
|
129
|
+
|
130
|
+
0.0.15
|
131
|
+
: User themeable
|
132
|
+
: Handle Setex headers
|
133
|
+
: General fixes and improvements
|
134
|
+
|
135
|
+
0.0.14
|
136
|
+
: Don't run pygments on code blocks without language specified in either the fence or a hashbang on the first line
|
137
|
+
: Fix to maintain indentation for fenced code in lists
|
138
|
+
: Remove leading ~ for code blocks
|
139
|
+
: Add background color
|
140
|
+
: Add line ending marker to make more sense of code wrapping
|
141
|
+
: lowercase code block fences
|
142
|
+
: remove "end code" marker
|
143
|
+
: Highlight with monokai theme
|
144
|
+
: Black background for all (fenced) code blocks
|
145
|
+
|
146
|
+
0.0.13
|
147
|
+
: Better language detection for code blocks
|
148
|
+
: when available, use italic font for italics and bold-italics emphasis
|
149
|
+
: new colorization for html tags
|
data/lib/mdless/console.rb
CHANGED
@@ -232,7 +232,7 @@ module Redcarpet
|
|
232
232
|
if MDLess.options[:preserve_linebreaks]
|
233
233
|
"#{xc}#{text.gsub(/ +/, ' ').strip}#{xc}#{x}\n\n"
|
234
234
|
else
|
235
|
-
"#{xc}#{text.gsub(/ +/, ' ').gsub(/\n
|
235
|
+
"#{xc}#{text.gsub(/ +/, ' ').gsub(/\n+(?![:-])/, ' ').strip}#{xc}#{x}\n\n"
|
236
236
|
end
|
237
237
|
end
|
238
238
|
|
data/lib/mdless/converter.rb
CHANGED
@@ -132,6 +132,12 @@ module CLIMarkdown
|
|
132
132
|
`#{ENV['EDITOR']} '#{File.expand_path('~/.config/mdless/config.yml')}'`
|
133
133
|
end
|
134
134
|
|
135
|
+
opts.on('--changes', 'Open the changelog to see recent updates') do
|
136
|
+
changelog = File.join(File.dirname(__FILE__), '..', '..', 'CHANGELOG.md')
|
137
|
+
system "mdless --linebreaks '#{changelog}'"
|
138
|
+
Process.exit 0
|
139
|
+
end
|
140
|
+
|
135
141
|
opts.on('--edit-theme', ["Open the default or specified theme file in #{ENV['EDITOR'] || 'default editor'}. ",
|
136
142
|
"If theme doesn't exist, a new theme file will be populated and opened."].join) do
|
137
143
|
raise 'No $EDITOR defined' unless ENV['EDITOR']
|
@@ -172,7 +178,7 @@ module CLIMarkdown
|
|
172
178
|
end
|
173
179
|
end
|
174
180
|
|
175
|
-
default(:preserve_linebreaks,
|
181
|
+
default(:preserve_linebreaks, true)
|
176
182
|
opts.on('--[no-]linebreaks', 'Preserve line breaks') do |opt|
|
177
183
|
MDLess.options[:preserve_linebreaks] = opt
|
178
184
|
end
|
data/lib/mdless/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
@@ -89,6 +89,7 @@ extensions: []
|
|
89
89
|
extra_rdoc_files:
|
90
90
|
- README.md
|
91
91
|
files:
|
92
|
+
- CHANGELOG.md
|
92
93
|
- README.md
|
93
94
|
- bin/mdless
|
94
95
|
- lib/mdless.rb
|