Skip to content

Commit

Permalink
Merge pull request #562
Browse files Browse the repository at this point in the history
Fix #548: Converting html images fails if the image refers to an emoji without a shortcut
  • Loading branch information
vsch committed Apr 30, 2023
2 parents e51f246 + c31cc03 commit d58e370
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ private void processImg(Element element, HtmlNodeConverterContext context, HtmlM
}
}

if (emoji != null) {
if (emoji != null && emoji.shortcut != null) {
out.append(':').append(emoji.shortcut).append(':');
} else {
LinkConversion conv = myHtmlConverterOptions.extInlineImage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1911,3 +1911,13 @@ Issue [#357, HTML to markdown and removed nested list]
[#353, How to self modify parse method when htmltomarkdown]: https://github.com/vsch/flexmark-java/issues/353
[#357, HTML to markdown and removed nested list]: https://github.com/vsch/flexmark-java/issues/357


## Issue 548

Issue #548 , Images with emoji-filenames break the emoji handling code if they have no corresponding shortcut

```````````````````````````````` example Issue 548: 1
![](1f9a0.png)
.
<img src="1f9a0.png" />
````````````````````````````````

0 comments on commit d58e370

Please sign in to comment.