Skip to content

Commit

Permalink
Properly ignore alt text of rendered images
Browse files Browse the repository at this point in the history
Fixed GH-148
  • Loading branch information
swsnr committed Jun 14, 2020
1 parent 152e30c commit 041bf32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
To publish a new release run `scripts/release` from the project directory.

## [Unreleased]
### Fixed
- Properly ignore alt text of inline images (see [GH-148]).

[GH-148]: https://github.com/lunaryorn/mdcat/issues/148

## [0.18.2] – 2020-05-31
### Fixed
Expand Down
1 change: 1 addition & 0 deletions src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ pub fn write_event<'a, W: Write>(
.current(image_state)
.and_data(data)
}
(Stacked(stack, RenderedImage), Text(_)) => (Stacked(stack, RenderedImage), data),
(Stacked(stack, RenderedImage), End(Image(_, _, _))) => (stack.pop(), data),
(Stacked(stack, Inline(_, attrs)), End(Image(_, target, title))) => {
let (data, index) = data.add_link(target, title);
Expand Down

0 comments on commit 041bf32

Please sign in to comment.