diff options
| author | Misko Hevery | 2011-01-19 12:16:21 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-01-24 14:23:51 -0800 | 
| commit | d8acfe738906c2cb9755f7a872ea7ff22f8cdd51 (patch) | |
| tree | 3484afac8e7969b3fe506f8baf919720bb5ec89d /docs/src/dom.js | |
| parent | b036c0bc58e186e4180df48be923e3c9b96af57d (diff) | |
| download | angular.js-d8acfe738906c2cb9755f7a872ea7ff22f8cdd51.tar.bz2 | |
add @this and @exampleDescription tags
(also removed markdownNoP, now done through CSS)
Diffstat (limited to 'docs/src/dom.js')
| -rw-r--r-- | docs/src/dom.js | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/docs/src/dom.js b/docs/src/dom.js index d7c2a157..fedd4e19 100644 --- a/docs/src/dom.js +++ b/docs/src/dom.js @@ -82,7 +82,9 @@ DOM.prototype = {      if (content==undefined || content && content.legth == 0) return;      this.tag('h' + this.headingDepth, heading);      this.headingDepth++; -    var className = {'class': heading.toLowerCase()}; +    var className = typeof heading == 'string' +      ? {'class': heading.toLowerCase().replace(/[^\d\w_]/, '-')} +      : null;      if (content instanceof Array) {        this.ul(content, className, fn);      } else if (fn) { | 
