mdless 2.1.1 → 2.1.3

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: cd020f19c756d65ae77a7776165c1aeadd0b2339a9dcabf82018f7e7a10105fc
4
- data.tar.gz: 650881325a80cd06c61656f339a30d8e45f74b667842691c82e9a2b6b0ab3184
3
+ metadata.gz: 6889fdd8408bf2d11ef61f18261c57f50cd806f41595acba1d5dd17e439c95b8
4
+ data.tar.gz: 92ba0555ae5ddd4092a60d5dfdb9c5c7e2a5d6f7914eb4c140bbb1bbc84959fc
5
5
  SHA512:
6
- metadata.gz: f41c118304004d8eb6f332b1edc66a51d6a4f346140acceb93db291bcade96635172f9e0c412119e60aad889ba6e4354e1491bf6ebf8d59b86770e408ff930fe
7
- data.tar.gz: 5a9bdc6051825f50720a20a7767dbe759982a6b368f08b20905b703ffe7882d654aed737c919e445231bffefbb67328774856518546ba15e86667adf23c7b9c3
6
+ metadata.gz: 323b2d8fae576af6fb4fee090d21aef0897f5f3024c6928c648f95944f51395b44e53bef1aa46462094dd61326d29e3f17a173455cb6351616e82c35c377110c
7
+ data.tar.gz: 3601996987a8f4fdb7c4fcc685474ee5895ea4252274acb6c0e2caa5aa766f926ba2e66b694a6ad7fe4f865da69f3f1f919800ad82c15573580a0088a6fce234
data/CHANGELOG.md ADDED
@@ -0,0 +1,152 @@
1
+ 2.1.3
2
+ : Respect :width setting in config
3
+
4
+ 2.0.24
5
+ : Update readme with config descriptions
6
+ : Code blocks containing YAML with `---` as the first line were being interpreted as Setext headers
7
+ : Line breaks being consumed when matching tags for highlighting
8
+
9
+ 2.0.21
10
+ : When converting to reference links, catch links that have been wrapped
11
+
12
+ 2.0.20
13
+ : Subsequent tables inheriting first table's column count
14
+
15
+ 2.0.19
16
+ : `--section` can take string arguments to be fuzzy matched against headlines
17
+ : Code refactoring
18
+ : TaskPaper formatting now responds to --section with string matches
19
+ : TaskPaper formatting now responds to --list to list projects
20
+ : 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
21
+ : Extra line break before headers
22
+ : Wrap block quotes to max width
23
+ : Missing first headline in output
24
+ : Long links that were wrapped were not being replaced when converting to reference links
25
+
26
+ 2.0.18
27
+ : Better handling of default options set in config
28
+ : More expansive detection of screen width, no longer just dependent on `tput` being available
29
+ : Only extend borders and backgrounds on code blocks to the length of the longest line
30
+ : Include the language in the top border of code blocks, if available
31
+ : Validate themes and lexers using `pygmentize` output, with fallbacks
32
+ : If width specified in config is greater than display columns, fall back to display columns as max width
33
+ : Metadata (MMD/YAML) handling on TaskPaper files
34
+
35
+ 2.0.17
36
+ : Re-order command line options for more readable help output (`mdless -h`)
37
+
38
+ 2.0.15
39
+ : Highlight [[wiki links]]
40
+ : TaskPaper rendering refinements
41
+ : Handle TaskPaper tasks without project if --taskpaper is enabled
42
+ : Wiki link highlighting is optional with `--[no-]wiki-links` and can be set in config
43
+ : Nil error on short files
44
+ : Project regex matching `- PROJECT NAME:`
45
+ : If taskpaper is true, avoid all parsing other than tasks, projects, notes, and tags
46
+
47
+ 2.0.8
48
+ : Image rendering with chafa improved, still have to figure out a way to make sure content breaks around the embedded image
49
+ : Only detect mmd headers on first line
50
+
51
+ 2.0.7
52
+ : Render links as reference links at the end of the file (`--links ref`) or per-paragraph (`--links para`). Defaults to inline (`--links inline`)
53
+ : Pad numbers on headline listing to preserve indentation
54
+
55
+ 2.0.6
56
+ : Render links as reference links at the end of the file (`--links ref`) or per-paragraph (`--links para`). Defaults to inline (`--links inline`)
57
+ : Pad numbers on headline listing to preserve indentation
58
+
59
+ 2.0.5
60
+ : Better highlighting of metadata (both YAML and MMD)
61
+
62
+ 2.0.4
63
+ : False MMD metadata detection
64
+
65
+ 2.0.0
66
+ : Rely on Redcarpet for Markdown parsing, far more accurate with a few losses I'll handle over time
67
+ : Config file at ~/.config/mdless/config.yml
68
+ : Allow inlining of footnotes
69
+ : Nested list indentation
70
+
71
+ 1.0.37
72
+ : Comments inside of fenced code rendering as ATX headlines
73
+
74
+ 1.0.35
75
+ : Improved code block parsing and handling
76
+
77
+ 1.0.33
78
+ : Allow multiple sections with `-s 3,4,5`
79
+
80
+ 1.0.32
81
+ : Errors in Ruby 3.2
82
+
83
+ 1.0.30
84
+ : Errant pager output
85
+
86
+ 1.0.29
87
+ : Allow $ markers for equations
88
+ : Don't force white foreground when resetting color (allow default terminal color to be foreground
89
+ : Reset color properly when span elements are used in list items
90
+ : Code block border wrapping
91
+ : Use template settings for all footnote highlights
92
+ : Errant pager output1.0.13
93
+ : Fix for tables being eaten at the end of a document
94
+
95
+ 1.0.10
96
+ : Fix for regex characters in headlines breaking rendering
97
+
98
+ 1.0.9
99
+ : Catch error when breaking pipe
100
+
101
+ 1.0.8
102
+ : Improved table formatting
103
+
104
+ 1.0.7
105
+ : Force rewrite of damaged themes
106
+ : Add iTerm marks to h1-3 when using iTerm and no pager, so you can navigate with <kbd>⌘⇧↑/↓</kbd>
107
+
108
+ 1.0.6
109
+ : Fresh theme write was outputting `--- default` instead of a theme
110
+ : Better code span color
111
+ : If `bat` is the pager, force into `--plain` mode
112
+
113
+ 1.0.5
114
+ : Stop adjusting for highest header
115
+
116
+ 1.0.3
117
+ : Sort options order in `--help` output
118
+ : Allow multiple theme files, `--theme=NAME` option
119
+
120
+ 1.0.2
121
+ : Handle emphasis inside of quotes and parenthesis
122
+ : Make emphasis themeable in mdless.theme
123
+ : Fix for `-I` throwing error if imgcat isn't installed
124
+ : remove backslash from escaped characters
125
+
126
+ 1.0.1
127
+ : Fix for header listing justification
128
+ : Exclude horizontal rules `---` in header list
129
+
130
+ 1.0.0
131
+ : Just a version bump because I think it deserves it at this point.
132
+
133
+ 0.0.15
134
+ : User themeable
135
+ : Handle Setex headers
136
+ : General fixes and improvements
137
+
138
+ 0.0.14
139
+ : Don't run pygments on code blocks without language specified in either the fence or a hashbang on the first line
140
+ : Fix to maintain indentation for fenced code in lists
141
+ : Remove leading ~ for code blocks
142
+ : Add background color
143
+ : Add line ending marker to make more sense of code wrapping
144
+ : lowercase code block fences
145
+ : remove "end code" marker
146
+ : Highlight with monokai theme
147
+ : Black background for all (fenced) code blocks
148
+
149
+ 0.0.13
150
+ : Better language detection for code blocks
151
+ : when available, use italic font for italics and bold-italics emphasis
152
+ : new colorization for html tags
data/README.md CHANGED
@@ -235,11 +235,11 @@ function cat -d "Use bat instead of cat unless it's a Markdown file, then use md
235
235
  set -l exts md markdown txt taskpaper
236
236
 
237
237
  if not test -f $argv[-1]
238
- echo "File not found: $argv"
238
+ echo "File not found: $argv[-1]"
239
239
  return 0
240
240
  end
241
241
 
242
- if contains (get_ext $argv) $exts
242
+ if contains (get_ext $argv[-1]) $exts
243
243
  mdless $argv
244
244
  else
245
245
  command bat --style plain --theme OneHalfDark $argv
@@ -117,9 +117,9 @@ module CLIMarkdown
117
117
  default(:width, TTY::Screen.cols)
118
118
  opts.on('-w', '--width=COLUMNS', 'Column width to format for (default: terminal width)') do |columns|
119
119
  MDLess.options[:width] = columns.to_i
120
+ cols = TTY::Screen.cols
121
+ MDLess.options[:width] = cols if MDLess.options[:width] > cols
120
122
  end
121
- cols = TTY::Screen.cols
122
- MDLess.options[:width] = cols if MDLess.options[:width] > cols
123
123
 
124
124
  default(:autolink, true)
125
125
  opts.on('--[no-]autolink', 'Convert bare URLs and emails to <links>') do |p|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.1'
4
+ VERSION = '2.1.3'
5
5
  end
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.1.1
4
+ version: 2.1.3
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