googleworkspace / md2googleslides

Generate Google Slides from markdown
Apache License 2.0
4.49k stars 284 forks source link

Image captions #50

Open clbarnes opened 5 years ago

clbarnes commented 5 years ago

Text appearing in the same block as an image could be uploaded as a caption; I think right now any text on a slide with an image is ignored. Again, if that fits with Slides' layouts.

clbarnes commented 5 years ago

I think the way to do this would be to create a 2-cell table, putting the image in one cell and the caption in another. Text in the same block as an image could be a side-caption; text in a separate paragraph could be a below-caption.

e.g.

![](http://placekitten.com/200/300) This is a caption

would show

      /\_/\
 /\  / o o \
//\\ \~(*)~/
`  \/   ^ /   This is a caption
   | \|| ||
   \ '|| ||
    \)()-())

and

![](http://placekitten.com/200/300)

This is a catpion

would show

      /\_/\
 /\  / o o \
//\\ \~(*)~/
`  \/   ^ /  
   | \|| ||
   \ '|| ||
    \)()-())
This is a catpion