From b3a62b2e19b1743df52034d4d7a0405e6a65f925 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Mon, 29 Apr 2013 15:20:10 -0400 Subject: feat(ngdocs): support for HTML table generation from docs code --- docs/src/ngdoc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/src') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 0279829b..f4187d47 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -2,7 +2,7 @@ * All parsing/transformation code goes here. All code here should be sync to ease testing. */ -var Showdown = require('../../lib/showdown').Showdown; +var Showdown = require('showdown'); var DOM = require('./dom.js').DOM; var htmlEscape = require('./dom.js').htmlEscape; var Example = require('./example.js').Example; @@ -216,7 +216,7 @@ Doc.prototype = { }); }); text = parts.join(''); - text = new Showdown.converter().makeHtml(text); + text = new Showdown.converter({ extensions : ['table'] }).makeHtml(text); text = text.replace(/(?:
)?(REPLACEME\d+)(?:<\/p>)?/g, function(_, id) { return placeholderMap[id]; }); -- cgit v1.2.3