diff options
| author | Matias Niemelä | 2013-04-29 15:20:10 -0400 | 
|---|---|---|
| committer | Igor Minar | 2013-04-29 17:43:14 -0400 | 
| commit | b3a62b2e19b1743df52034d4d7a0405e6a65f925 (patch) | |
| tree | 5ba48fb0f0c49e56302e0ddb968d45e1046548c7 /docs/src | |
| parent | 400f9360bb2f7553c5bd3b1f256a5f3db175b7bc (diff) | |
| download | angular.js-b3a62b2e19b1743df52034d4d7a0405e6a65f925.tar.bz2 | |
feat(ngdocs): support for HTML table generation from docs code
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/ngdoc.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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(/(?:<p>)?(REPLACEME\d+)(?:<\/p>)?/g, function(_, id) {        return placeholderMap[id];      }); | 
