Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

directive markdown issue #52

Open
vergarm opened this issue Jul 19, 2016 · 1 comment
Open

directive markdown issue #52

vergarm opened this issue Jul 19, 2016 · 1 comment

Comments

@vergarm
Copy link

vergarm commented Jul 19, 2016

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
Copy link

jrutila commented Aug 31, 2016

Try:
<markdown ng-model="$contentfulEntry.fields.gooterText"></markdown>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants