Images and files

Note

For information on how to work with images in the new editor, see Images. For instructions on working with files, see Files.

Embedding images

Use this markup to add an image to the page:

![<alternative_text>](<image_address>)

Note

If you insert an image link without markup, the image will be added to the page without alternative text.

Markup Result
![Logo](http://img.yandex.net/i/logo95x37x8.png)

Note

The new editor allows you to paste images from your clipboard in markup mode.

Setting the image size

Set the size of the image on the page in pixels:

<width>x<height>:<image link>

Note

Since the image is scaled to maintain its aspect ratio, you can approximate the height. For example, a picture with this markup will be displayed correctly: 300x0:<image link>.

Markup Result
60x20:http://img.yandex.net/i/logo95x37x8.png

Use the link markup:

[link text](image URL)
Markup Result
[Yandex logo](http://img.yandex.net/i/logo95x37x8.png) Yandex logo

You can turn the image into a link so that clicking on it will open a page or file. To do this, insert an image in the link markup element instead of text:

[![<alternative_text>](<image_URL>)](<file_or_page_link>)
Markup Result
[![Logo](http://img.yandex.net/i/logo95x37x8.png)](https://yandex.com) Logo

Embedding a video

To add a video to the page, use the {{iframe}} dynamic block. It allows you to embed videos from external sources, such as Vimeo and YouTube.

Adding links to files

Add a file link to the page text using one of these methods:

Markup Result
http://file-link http://file-address
[link text](http://file-link) link text
Previous
Next