Markdown filter for Angular with updated dependencies
-
bower install angular-markdown-filter-updated
-
Made sure the showdown lib is loaded. It should be installed as a dependency at
bower_components/showdown/compressed/showdown.js
. -
Include the
markdown.js
script provided by this component into your app.4. -
Add
markdown
as a module dependency to your app. -
Insert code in view:
<div class="container">{{ info | markdown }}</div>
-
Insert code in controller:
$scope.info = '# Heading 1';