Describe the Markdown Syntax and URL syntax in detail.
Become a backer or sponsor to support our work.
1![alt](url [caption])
!
: must starts with a exclamation mark.alt
: alternative text.url
: the image URL.caption
: image caption shown below the image, optional.1URL = [scheme ":" "//"] path ["?" query] ["#" fragment]
scheme
: http
or https
, required for external images.path
: the path name of images.query
: the query string preceded by a question mark (?
), which is ampersand-separated (&
) key-value pairs, such as foo=bar&fizz=buzz
.fragment
: the fragment ID preceded by a hash (#
).For example, ![Example](/images/great-wall.jpg?crop=300x120&brightness=-30#float-end "Example caption")
, where
Example
represents the alternative text.path
is /images/great-wall.jpg
.query
is crop=300x120&brightness=-30
to crop the image in size 300x120
, change the brightness as -30
.fragment
is float-end
to float the image to the end (right).Example caption
represents the caption shown below the image.