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

Commit b3a62b2

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

File tree

6 files changed

+19
-1311
lines changed

6 files changed

+19
-1311
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;
@@ -216,7 +216,7 @@ Doc.prototype = {
216216
});
217217
});
218218
text = parts.join('');
219-
text = new Showdown.converter().makeHtml(text);
219+
text = new Showdown.converter({ extensions : ['table'] }).makeHtml(text);
220220
text = text.replace(/(?:<p>)?(REPLACEME\d+)(?:<\/p>)?/g, function(_, id) {
221221
return placeholderMap[id];
222222
});

lib/showdown/index.js

-7
This file was deleted.

0 commit comments

Comments
 (0)