Skip to content

Commit

Permalink
Add support for resized images
Browse files Browse the repository at this point in the history
Since many images in READMEs are resized, I propose to enable the `parseImgDimensions` showdown option.
  • Loading branch information
marcklingen authored Jan 29, 2022
1 parent 87cea88 commit ecc1559
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const converter = new showdown.Converter({
simpleLineBreaks: true,
ghMentions: true,
tables: true,
emoji: true
emoji: true,
parseImgDimensions: true
});

converter.setFlavor('github');
Expand Down

0 comments on commit ecc1559

Please sign in to comment.