markz

Links and images

[docs](/docs){target=_blank} and ![hero](h.png){.wide width=600}
.
<p><a href="/docs" target="_blank">docs</a> and <img src="h.png" alt="hero" class="wide" width="600" /></p>
[docs](/docs) {.x}
.
<p><a href="/docs">docs</a> {.x}</p>
[x](javascript:alert(1)) and ![x](data:image/png;base64,AA)
.
<p><a href="">x</a> and <img src="data:image/png;base64,AA" alt="x" /></p>
[sic] and [x] and <https://a.com> and <me@example.com>
.
<p>[sic] and [x] and <a href="https://a.com">https://a.com</a> and <a href="mailto:me@example.com">me@example.com</a></p>
[https://a.com](https://a.com) and ![www.a.com](a.png)
.
<p><a href="https://a.com">https://a.com</a> and <img src="a.png" alt="www.a.com" /></p>
[x](/u/${id}/edit)
.
<p><a href="/u/$%7Bid%7D/edit">x</a></p>
Not links in GFM: www.a_b.com, react@0.14.1, xhttp://a.com, [see https://a.com
.
<p>Not links in GFM: www.a_b.com, react@0.14.1, xhttp://a.com, [see https://a.com</p>
[a](b "") ![c](d "")
.
<p><a href="b">a</a> <img src="d" alt="c" /></p>

A link's text holds no link, so the inner one wins.

[a [b](c) d](e)
.
<p>[a <a href="c">b</a> d](e)</p>

At the start of a line, <? opens no HTML block, since markz has none.

<?a@b.c>
.
<p><a href="mailto:?a@b.c">?a@b.c</a></p>
[a](b and [c
.
<p>[a](b and [c</p>