blob: d0dd9d6a230422f41db560bc40353984ddd39c7f (
plain)
1
2
3
4
5
6
7
8
9
10
|
angular.module('markdown', [])
.directive('markdown', function() {
return {
restrict: 'A',
link: function(scope, element, attrs, controller) {
element.html(marked(element.html()));
}
};
});
|