brrd / abricotine

Markdown editor with inline preview
GNU General Public License v3.0
2.63k stars 156 forks source link

feature: resize image in markdown #345

Closed creatxrgithub closed 1 year ago

creatxrgithub commented 1 year ago

to limit image size in markdown document, eg:

![image134|10x10,1%](example.svg) ![image134](example.svg){width:10px, height:10px}

brrd commented 1 year ago

Abricotine only supports GFM (GitHub Flavored Markdown) which unfortunately does not include any size attributes for images. You can use the <img> tag as an alternative.

creatxrgithub commented 1 year ago

I've tried.

e.g.

![](example.svg)

It works in Abricotine.

https://github.github.com/gfm/#example-484

<img src="example.svg" style="height: 10px; width:10px;"/> *<img src="example.svg" style="height: 10px; width:10px;"/>

It works in Github, but not in Abricotine. It shows the code text.

brrd commented 1 year ago

What you are asking for is this feature: #281