I use angular-translate and showdown.js in my app (showdown is a port of markdown). I would like to run the output of a translated string through markdown. Do you have any suggestions of how to achieve that?
Let's say I have the string
This is a [link](www.google.com).
Running it through markdown would give
This is a link.
My goal is to have strings like this in my translation files, and run the translated text though markdown. I use a angular-markdown directive which is used like this:
<markdown>This is a [link](www.google.com).</markdown>
But combining markdown and angular-translate like this
<p><markdown>{{ 'MARKDOWNTEST' | translate }}</markdown></p>
outputs
<p>{{ 'MARKDOWNTEST' | translate }}</p>