"html vs text" Email script fails
I'm trying out a solution posted here: https://blog.teknkl.com/polymorphic-tokens/
Everything seems fine while previewing in Marketo, but when I send a test (html and text) to my Outlook or a Gmail acount, the Text version is giving html version, written out. It looks like the script fires, but only gives the first, html version. If so, I've got a back-end problem of how to provide 'text version' for proofing.
Or maybe there's something in the html that needs to be escaped?
Here's the script:
#if( !$intro_one ) #define ( $intro_one )
## HTML version
<div style="padding-right: 25px; margin-right: 0px; border-right: 1px solid #383a3c;">
<p><span style="font-size: 16px; color: #999999;"><strong></strong></span></p>
<p style="line-height: 22px;">Lorem Ipsum</p>
</div>
#end
#else #define ( $intro_one )
## Text version
Lorem Ipsum
#end
#end
$intro_one
##