Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit cf38d8c

Browse files
matskoIgorMinar
authored andcommitted
feat(ngdocs): support for HTML table generation from docs code
1 parent b0233a3 commit cf38d8c

File tree

5 files changed

+12
-1306
lines changed

5 files changed

+12
-1306
lines changed

docs/src/ngdoc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* All parsing/transformation code goes here. All code here should be sync to ease testing.
33
*/
44

5-
var Showdown = require('../../lib/showdown').Showdown;
5+
var Showdown = require('showdown');
66
var DOM = require('./dom.js').DOM;
77
var htmlEscape = require('./dom.js').htmlEscape;
88
var Example = require('./example.js').Example;
@@ -174,7 +174,7 @@ Doc.prototype = {
174174
});
175175
});
176176
text = parts.join('');
177-
text = new Showdown.converter().makeHtml(text);
177+
text = new Showdown.converter({ extensions : ['table'] }).makeHtml(text);
178178
text = text.replace(/(?:<p>)?(REPLACEME\d+)(?:<\/p>)?/g, function(_, id) {
179179
return placeholderMap[id];
180180
});

lib/showdown/index.js

-7
This file was deleted.

0 commit comments

Comments
 (0)