From 258cae83dc1a03b6b878a7b4236c499288cd2624 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Mon, 8 Jul 2013 21:58:14 -0400 Subject: chore(ngdocs): replace showdown.js with marked.js --- docs/components/angular-bootstrap/bootstrap.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'docs/components/angular-bootstrap') diff --git a/docs/components/angular-bootstrap/bootstrap.js b/docs/components/angular-bootstrap/bootstrap.js index 71972200..170e8805 100644 --- a/docs/components/angular-bootstrap/bootstrap.js +++ b/docs/components/angular-bootstrap/bootstrap.js @@ -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 + }); + }); -- cgit v1.2.3