chore(ngdocs): replace showdown.js with marked.js

This commit is contained in:
Matias Niemelä
2013-07-08 21:58:14 -04:00
committed by Igor Minar
parent ab18914298
commit 258cae83dc
10 changed files with 62 additions and 54 deletions

View File

@@ -257,7 +257,7 @@ var popoverElement = function() {
content : function(value) {
if(value && value.length > 0) {
value = new Showdown.converter().makeHtml(value);
value = marked(value);
}
return this.contentElement.html(value);
},
@@ -380,4 +380,12 @@ directive.foldout = ['$http', '$animator','$window', function($http, $animator,
}
}];
angular.module('bootstrap', []).directive(directive).factory('popoverElement', popoverElement);
angular.module('bootstrap', [])
.directive(directive)
.factory('popoverElement', popoverElement)
.run(function() {
marked.setOptions({
gfm: true,
tables: true
});
});