-
Notifications
You must be signed in to change notification settings - Fork 21
Update images.md #1090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update images.md #1090
Changes from 1 commit
f6a127b
08f1e69
1e77312
077c0d2
836ed29
b31cd8e
ff5db98
52187a3
8b57322
80e15f2
a94df01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
# Images | ||
|
||
Images include screenshots, inline images, icons, and more. Syntax for images is like the syntax for links, with two differences: | ||
Images include screenshots, inline images, icons, and more. Syntax for images is like the syntax for links, with the following differences: | ||
|
||
1. instead of link text, you provide an image description | ||
2. an image description starts with ` | ||
 | ||
``` | ||
|
||
 | ||
 | ||
|
||
Or, use the `image` directive. | ||
|
||
```markdown | ||
:::{image} img/observability.png | ||
:::{image} /syntax/img/observability.png | ||
:alt: Elasticsearch | ||
:width: 250px | ||
::: | ||
``` | ||
|
||
:::{image} img/observability.png | ||
:::{image} /syntax/img/observability.png | ||
:alt: Elasticsearch | ||
:width: 250px | ||
::: | ||
|
@@ -33,36 +38,36 @@ Or, use the `image` directive. | |
Screenshots are images displayed with a box-shadow. Define a screenshot by adding the `:screenshot:` attribute to a block-level image directive. | ||
|
||
```markdown | ||
:::{image} img/apm.png | ||
:::{image} /syntax/img/apm.png | ||
:screenshot: | ||
::: | ||
``` | ||
|
||
:::{image} img/apm.png | ||
:::{image} /syntax/img/apm.png | ||
:screenshot: | ||
::: | ||
|
||
## Inline images | ||
|
||
```markdown | ||
Here is the same image used inline  | ||
Here is the same image used inline  | ||
``` | ||
|
||
Here is the same image used inline  | ||
Here is the same image used inline  | ||
|
||
|
||
### Inline image titles | ||
|
||
Titles are optional making this the minimal syntax required | ||
|
||
```markdown | ||
 | ||
 | ||
``` | ||
|
||
Including a title can be done by supplying it as an optional argument. | ||
|
||
```markdown | ||
 | ||
 | ||
``` | ||
|
||
### Inline image sizing | ||
|
@@ -73,35 +78,35 @@ This is done to maintain maximum compatibility with markdown parsers | |
and previewers. | ||
|
||
```markdown | ||
 | ||
 | ||
 | ||
 | ||
``` | ||
|
||
`W` and `H` can be either an absolute number in pixels or a number followed by `%` to indicate relative sizing. | ||
|
||
If `H` is omitted `W` is used as the height as well. | ||
|
||
```markdown | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
``` | ||
|
||
|
||
|
||
### SVG | ||
|
||
```markdown | ||
 | ||
 | ||
``` | ||
 | ||
 | ||
|
||
### GIF | ||
|
||
```markdown | ||
 | ||
 | ||
``` | ||
 | ||
 | ||
|
||
|
||
## Asciidoc syntax | ||
|
@@ -113,4 +118,4 @@ image::images/metrics-alert-filters-and-group.png[Metric threshold filter and gr | |
|
||
```asciidoc | ||
image::images/synthetics-get-started-projects.png[] | ||
``` | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.