cogneco / typeup

Markdown inspired markup language.
GNU Affero General Public License v3.0
1 stars 1 forks source link

Captions on tables and figures #3

Open simonmika opened 8 years ago

simonmika commented 8 years ago

How should one add captions to figures and tables?

simonmika commented 8 years ago

What about this for a figure with comment: ! folder/image.png This is the figure caption or

! folder/image.png
This is the figure caption

They should in both cases be surrounded by empty lines, like a paragraph.

davidhesselbom commented 8 years ago

Don't forget about alt texts for images.

Also, floating images is something I really miss in Markdown. Any ideas on syntax for doing that?

simonmika commented 8 years ago

I think the alt-text could be the same as the caption. Do you want to have both floating images and non-floating ones in the same document?

simonmika commented 8 years ago

By the way, my current thinking is to use the following syntax:

!figure folder/image.png This is the figure caption.

This would also allow for things like:

!include folder/subcontent.tup
davidhesselbom commented 8 years ago

Do you want to have both floating images and non-floating ones in the same document?

Yes, I'm likely going to want to have both full-width images and much more narrow images in the same document. The narrow ones I want to float, the full-width ones I'd prefer to center.

simonmika commented 8 years ago

Ok, I think I might have a solution.