typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

Syntax for attributes, image size, and captions (or auto-numbered captions)

Open Cescfangs opened this issue 8 years ago • 18 comments

I don't know how to resize image in typora, in Mou, one can resize image like that:

![image](a.png =100x100)

Will typora support something like that in the future?

Cescfangs avatar Aug 05 '16 01:08 Cescfangs

current solution -> #358

abnerlee avatar Oct 18 '16 02:10 abnerlee

This is not the same as #358. If a local image has been pasted, the prefix is ![image](a.png) not the <img src=.... />. To use the solution in #358, the insert action should be done again. So I think the enhancement of this is really helpful.

benbenpig avatar Nov 18 '17 11:11 benbenpig

For captions you could use a 1x2 table, in the first row put the picture with html, in the second add the caption.

Topicaleks avatar Jan 24 '18 13:01 Topicaleks

+1 for resizing local images as described in #1081 - this would be an invaluable feature.

bcow avatar Feb 08 '18 04:02 bcow

@Topicaleks Tables are not an option if you want to convert the Markdown to LaTeX. Pandoc uses the alt text to generate the caption: An image with nonempty alt text, occurring by itself in a paragraph, will be rendered as a figure with a caption. The image’s alt text will be used as the caption.

It would be sensible if Typora did the same.

moi90 avatar Apr 24 '18 19:04 moi90

Hello, I wish to see captions of figures directly. Any updates on this?

LionSR avatar Oct 21 '18 08:10 LionSR

if original copy image operation can't set size, could you consider change default copy style to tag style? it's really helpful when i writing blogs.

Pekary avatar Dec 10 '18 12:12 Pekary

This is a pain in the neck. Typora needs to resize pics directly from clipboard.

For now one solution is to set default zoom to about 50% in css file. The other solution I prefer is to write a scrip and transform it to html format. Look forward to updates.

Nifbear avatar Mar 09 '19 16:03 Nifbear

Any news on caption support ?

PolestarWx avatar Jun 18 '20 08:06 PolestarWx

This one is really a must! If this is introduced, I'll be able to drop word/OpenOffice/latex for the most significant part of my workflow!

alessandropellegrini avatar Feb 05 '22 00:02 alessandropellegrini

Any news on caption support ?

smthpickboy avatar Mar 31 '22 00:03 smthpickboy

Any news? why don't we just imitate the Obsidian's img-link design?

bitosky avatar Apr 13 '22 13:04 bitosky

Any news on caption feature?

xiaotianxt avatar Nov 08 '22 04:11 xiaotianxt

Hopfully we can get a better support for captions sooner, comparing to the tempory solution mentioned in #2238

Yuxin-Ren-SZ avatar Jan 19 '23 03:01 Yuxin-Ren-SZ

Currently, I am using MkDocs for a documentation site and was using Typora to display images. If I use <img tag it does not work in mkdocs, the paths are different. Thus would be very useful to be able to scale the image through a markdown tag that would work on both sides.

gunnsth avatar Mar 08 '23 15:03 gunnsth

Still not implemented? Was looking for this too and wondered why no image was displayed.

rinzwind5 avatar Feb 20 '24 04:02 rinzwind5

Markdown syntax used by other apps to set image size:

  • Using attributes:![alt](/image.png){ width=300 height=300 }
  • Obsidian: ![alt|300x300](/image.png)

Please implement, this is crucial!

activivan avatar Apr 19 '24 17:04 activivan

Using <figure> and <caption> label is sufficient in pure markdown editing, but the labels will be ommited when export via pandoc tool. A native caption support is a big plus.

klizet avatar Apr 22 '24 09:04 klizet