From d8acfe738906c2cb9755f7a872ea7ff22f8cdd51 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 19 Jan 2011 12:16:21 -0800 Subject: add @this and @exampleDescription tags (also removed markdownNoP, now done through CSS) --- docs/src/dom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/src/dom.js') 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) { -- cgit v1.2.3