diff options
| author | Matias Niemelä | 2013-04-29 15:20:10 -0400 |
|---|---|---|
| committer | Igor Minar | 2013-04-29 17:47:53 -0400 |
| commit | cf38d8c55b6c18f41bb559016005627671e7d795 (patch) | |
| tree | 5975bf92e92a7ccc3015e7b3eb9f83afb563ab8a /docs/src | |
| parent | b0233a33a1c56ef6c775545f36f6e086def98795 (diff) | |
| download | angular.js-cf38d8c55b6c18f41bb559016005627671e7d795.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 15f92d8c..84a165f2 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; @@ -174,7 +174,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]; }); |
