I am experiencing problems as well.
part of my shortcode is:
<div class="col-md-4">
<div class="image pull-left">
{{ if isset .Params "url" }}
<a href="{{ .Params.url | relLangURL }}">
<img src="{{.Site.BaseURL}}{{.Params.img}}" class="img-responsive" alt="">
</a>
{{ else }}
<img src="{{.Site.BaseURL}}{{.Params.img}}" class="img-responsive" alt="">
{{ end }}
</div>
</div>
The divs are rendered ok but the links (<a…) are rendered wrong. Wrapped in pre/code and html escaped:
<div class="col-md-4">
<div class="image pull-left">
<pre><code> <a href="/products/x62t">
<img src="//localhost:1313//img/X62T.png" class="img-responsive" alt="">
</a>
<p></div>
I did set unsafe to true in the markup.goldmark config. With ‘defaultMarkdownHandler = “blackfriday”’ everything is fine.