directive markdown issue
vergarm opened this issue · 1 comments
vergarm commented
How do I use this directive markdown for a contentful field? I can see the contentful entry when rendered but the markdown doesnt work and renders the string as-is.
<div btf-markdown="$contentfulEntry.fields.footerText"></div>
I have all the same stuff referenced in my library: angular.min.js, angular-sanitize.js, angular-contentful.min.js, showdown.js and markdown.js. I also have the btford.markdown module dependencies initialized. Has anyone used this in a similar way? Thanks
jrutila commented
Try:
<markdown ng-model="$contentfulEntry.fields.gooterText"></markdown>