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

Commit

Permalink
feat(ngdocs): support for HTML table generation from docs code
Browse files Browse the repository at this point in the history
  • Loading branch information
matsko authored and IgorMinar committed Apr 29, 2013
1 parent 400f936 commit b3a62b2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1,311 deletions.
4 changes: 2 additions & 2 deletions docs/src/ngdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(/(?:<p>)?(REPLACEME\d+)(?:<\/p>)?/g, function(_, id) {
return placeholderMap[id];
});
Expand Down
7 changes: 0 additions & 7 deletions lib/showdown/index.js

This file was deleted.

Loading

0 comments on commit b3a62b2

Please sign in to comment.