Markdown Syntax Images
Admittedly, it’s fairly difficult to devise a “natural” syntax for placing images into a plain text document format.
Markdown uses an image syntax that is intended to resemble the syntax for links, allowing for two styles: inline and reference.
Inline image syntax looks like this:


That is:
- An exclamation mark:
!; - followed by a set of square brackets, containing the
altattribute text for the image; - followed by a set of parentheses, containing the URL or path to the image, and an optional
titleattribute enclosed in double or single quotes.
Reference-style image syntax looks like this:
![Alt text][id]
Where “id” is the name of a defined image reference. Image references are defined using syntax identical to link references:
[id]: url/to/image "Optional title attribute"
As of this writing, Markdown has no syntax for specifying the dimensions of an image; if this is important to you, you can simply use regular HTML <img> tags.
原文链接
Markdown为纯文本文档格式提供了简洁的图片插入语法,包括内联和引用样式。内联语法以感叹号开始,紧跟方括号内的替换文本和圆括号内的图片路径。引用样式则通过定义图像参考并稍后引用。目前Markdown不支持指定图片尺寸,但可以使用HTML的<img>标签来实现。
537

被折叠的 条评论
为什么被折叠?



