diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-09 17:55:20 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-09 17:55:20 -0800 |
commit | 5e9db2581e94efb497b9e5a22ce4ff98f9fd7de7 (patch) | |
tree | 775a1c94d84d989c25c8b5058a24c3eeb41be7be | |
parent | dc4a6c8cdaa1bd9b9d6baee0b992541f745cadc9 (diff) |
Spec: use terminology of "image description" rather than "alt text".
"alt text" has to do with one possible rendering decision.
-rw-r--r-- | spec.txt | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -5884,16 +5884,15 @@ is followed by a link label (even though `[bar]` is not defined): ## Images -Syntax for images is very much like the syntax for links. To a -first approximation: an (unescaped) exclamation mark (`!`) followed by -a reference or inline link will be parsed as an image. The plain -string content of the link text will be used as the image's alt text, -and the link title, if any, will be used as the image's title. - -There is just one important difference. A [link text](#link-text) can -contain images, but not other links. An image's alt text, by -contrast, can contain links, but not images. - +Syntax for images is like the syntax for links, with one +difference. Instead of [link text](#link-text), we have an [image +description](@image-description). The rules for this are the +same as for [link text](#link-text), except that (a) an +image description starts with ` @@ -5923,9 +5922,10 @@ contrast, can contain links, but not images. Though this spec is concerned with parsing, not rendering, it is recommended that in rendering to HTML, only the plain string content -of the alt text be used. Note that in the above example, the alt text -is `foo bar`, not `foo [bar](/url)` or `foo <a href="/url">bar</a>`. -Only the plain string content is rendered, without formatting. +of the [image description](#image-description) be used. Note that in +the above example, the alt attribute's value is `foo bar`, not `foo +[bar](/url)` or `foo <a href="/url">bar</a>`. Only the plain string +content is rendered, without formatting. . ![foo *bar*][] |