Use html tags. The token values are rendered properly if they are within html tags.
Example:
<dashboard>
<label>My Weekly Dashboard</label>
<row>
<panel>
<html>
<style>.chartTitleText {font-size: 16px; font-weight:bold;}</style>
<p class="chartTitleText">My tokens: $mytoken1$ $mytoken2$ $mytoken3$</p>
</html>
...
</panel>
</row>
...
</dashboard>
I downvoted this post because didn't work
I tried, but unfortunately it did not work. The pdf prints token names. I am passing tokens from a js.