Image Inline-style
![alt text](image.jpg "title")
- alt vs title
- alt text is read to blind people and understandable by Google and other search engines
- Title text: what a user sees after hovering over the image
- Prefer
![]()
syntax over img tag- The raw HTML is passed through unchanged in HTML, S5, Slidy, Slideous, DZSlides, EPUB, Markdown, and Textile output, and suppressed in other formats.
- In Pandoc, 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.
- If we don’t want the caption, just make sure it is not the only thing in the paragraph, or insert a nonbreaking space after the image:
Image Reference-style
- Used when the images are used multiple times
- Used to embed image as base64 text
Hyperlinked Images
- Wrap the image in another link and set the link href to a different url.
- Same trick can be used to change image destination.
![image](foo.jpg){#id .class width=30 height=20px}
- We can add CSS style, id, change width, height to px or percentage, or add any key value.
- html: p align
- Add center CSS in Pandoc
Embed Images as base64 Content