mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
chore(ngdocs): replace showdown.js with marked.js
This commit is contained in:
committed by
Igor Minar
parent
ab18914298
commit
258cae83dc
12
docs/components/angular-bootstrap/bootstrap.js
vendored
12
docs/components/angular-bootstrap/bootstrap.js
vendored
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user