Skip to content

Commit

Permalink
Merge branch 'release/2.1.44'
Browse files Browse the repository at this point in the history
* release/2.1.44:
  2.1.44
  version bump
  fix image rendering
  • Loading branch information
ttscoff committed Aug 8, 2024
2 parents b8f1ca7 + 58bc08e commit 4a8a092
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mdless/console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ def render_images(input)
tmp_img = File.basename(img_path)
img = `chafa #{term} "#{tmp_img}"`
pre = alt_text ? " #{c(%i[d blue])}[#{alt_text.strip}]\n" : ''
post = title ? "\n #{c(%i[b blue])}-- #{tail} --" : ''
post = title ? "\n #{c(%i[b blue])}-- #{title} --" : ''
result = pre + img + post
Dir.chdir('..')
FileUtils.rm_r '.mdless_tmp', force: true
Expand Down
2 changes: 1 addition & 1 deletion lib/mdless/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CLIMarkdown
VERSION = '2.1.42'
VERSION = '2.1.44'
end
30 changes: 30 additions & 0 deletions test/lists2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- level 1
* level 2
```ruby
def start() end
```

+ level 3
- level 4
* level 2
+ level 3
- level 4
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut

aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- level 5
- level 4
* numbered lists
1. numbered 1
1. Numbered 2
2. numbered 1
3. numbered 1
* bullet
* bullet
* longer line Lorem ipsum dolor sit amet, consectetur adipisicing elit
- level 1

0 comments on commit 4a8a092

Please sign in to comment.