The first one looks like a shortcode.
Change this:
{{ range $k, $v := $platforms }}
{{ if (eq $v "ios") }}
<div id="tab-{{$id}}-{{$k}}" class="tab-content">
{{ $content | markdownify | replaceRE `href="/#` `href="#` | safeHTML}}
</div>
{{ end }}
{{ end }}
To this:
{{ range $k, $v := $platforms }}
{{ if (eq $v "ios") }}
<div id="tab-{{$id}}-{{$k}}" class="tab-content">
{{ $content | $.Page.RenderString }}
</div>
{{ end }}
{{ end }}
And test again.
At some point I hope we deprecate the markdownify function; it has issues. Use .Page.RenderString instead… everywhere.