angular-markdown-directive
Bower Component for a simple AngularJS Markdown directive using Showdown. Based on this excellent tutorial by @johnlinquist.
Usage
bower install angular-markdown-directive
- Include
angular-sanitize.js
. It should be located atbower_components/angular-sanitize/
. - Include
showdown.js
. It should be located atbower_components/showdown/
. - Include
markdown.js
provided by this component into your app. - Add
btford.markdown
as a module dependency to your app. - Insert the
btf-markdown
directive into your template:
#Markdown directive *It works!*
You can also bind the markdown input to a scope variable:
<!-- Uses $scope.markdown -->
Or include a markdown file:
<!-- Uses content from README.md -->
Options
You can configure the markdownConverterProvider
:
angular
License
MIT