Add closing tags for <a> (#7163)

Merge pull request 7163
This commit is contained in:
Zhang Xiangze 2018-07-29 00:22:15 +08:00 committed by jekyllbot
parent d0f8c86d2f
commit 0001895968
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,7 @@ For example, suppose you have a special image syntax with complex formatting, an
<a href="http://jekyllrb.com"> <a href="http://jekyllrb.com">
<img src="logo.png" style="max-width: 200px;" <img src="logo.png" style="max-width: 200px;"
alt="Jekyll logo" /> alt="Jekyll logo" />
</a>
<figcaption>This is the Jekyll logo</figcaption> <figcaption>This is the Jekyll logo</figcaption>
</figure> </figure>
``` ```
@ -98,6 +99,7 @@ You could templatize this content in your include and make each value available
<a href="{{ include.url }}"> <a href="{{ include.url }}">
<img src="{{ include.file }}" style="max-width: {{ include.max-width }};" <img src="{{ include.file }}" style="max-width: {{ include.max-width }};"
alt="{{ include.alt }}"/> alt="{{ include.alt }}"/>
</a>
<figcaption>{{ include.caption }}</figcaption> <figcaption>{{ include.caption }}</figcaption>
</figure> </figure>
``` ```