Skip to content

Commit 41103e6

Browse files
committed
Add section for linking images
1 parent 263a636 commit 41103e6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

manuscript/chapter3.md

+14
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,20 @@ The rendered output looks like this:
939939

940940
![Philadelphia's Magic Gardens. This place was so cool!](images/philly-magic-garden.png "Philadelphia's Magic Gardens")
941941

942+
### Linking Images
943+
944+
To add a link to an image, enclose the Markdown for the image in brackets, and then add the link in parentheses.
945+
946+
{title="Markdown"}
947+
~~~~~~~
948+
[![An old rock in the desert](images/shiprock.jpg)](https://en.wikipedia.org/wiki/Shiprock)
949+
~~~~~~~
950+
951+
{title="HTML", lang=html}
952+
~~~~~~~
953+
<a href="https://en.wikipedia.org/wiki/Shiprock"><img src="images/shiprock.jpg" alt="An old rock in the desert"></a>
954+
~~~~~~~
955+
942956
## Escaping Characters
943957

944958
To display a literal character that would otherwise be used to format text in a Markdown document, add a backslash (`\`) in front of the character.

0 commit comments

Comments
 (0)