Comparing version 0.1.0 to 0.1.1
/*! | ||
* Output the given `str` to _stdout_ | ||
* or the stream specified by `options`. | ||
* | ||
* @param {String} str | ||
* @param {Object} options | ||
* @return {Object} exports for chaining | ||
/** | ||
* Escape the given `html`. | ||
* | ||
* Examples: | ||
* | ||
* utils.escape('<script></script>') | ||
* // => '<script></script>' | ||
* | ||
* @param {String} html string to be escaped | ||
* @return {String} escaped html | ||
* @api public | ||
*/ | ||
function User() { | ||
} | ||
/** | ||
* test | ||
*/ | ||
User.prototype.toString = function(){ | ||
return '<User>'; | ||
} | ||
exports.escape = function(html){ | ||
return String(html) | ||
.replace(/&(?!\w+;)/g, '&') | ||
.replace(/</g, '<') | ||
.replace(/>/g, '>'); | ||
}; |
0.1.1 / 2011-10-10 | ||
================== | ||
* Fixed: colons in comment lines not intended as headers [Evan Owen] | ||
0.0.5 / 2011-03-02 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -19,3 +19,3 @@ | ||
exports.version = '0.1.0'; | ||
exports.version = '0.1.1'; | ||
@@ -101,3 +101,3 @@ /** | ||
// parse comment body | ||
description.full = str.split('\n@')[0].replace(/^([\w ]+):/gm, '## $1'); | ||
description.full = str.split('\n@')[0].replace(/^([\w ]+):$/gm, '## $1'); | ||
description.summary = description.full.split('\n\n')[0]; | ||
@@ -104,0 +104,0 @@ description.body = description.full.split('\n\n').slice(1).join('\n\n'); |
{ "name": "dox" | ||
, "description": "Markdown / JSdoc documentation generator" | ||
, "version": "0.1.0" | ||
, "version": "0.1.1" | ||
, "author": "TJ Holowaychuk <tj@vision-media.ca>" | ||
@@ -5,0 +5,0 @@ , "keywords": ["documentation", "docs", "markdown", "jsdoc"] |
@@ -28,2 +28,7 @@ # Dox | ||
* | ||
* Examples: | ||
* | ||
* utils.escape('<script></script>') | ||
* // => '<script></script>' | ||
* | ||
* @param {String} html string to be escaped | ||
@@ -42,3 +47,3 @@ * @return {String} escaped html | ||
output JSON: | ||
output: | ||
@@ -51,3 +56,5 @@ ```json | ||
"type": "param", | ||
"types": ["String"], | ||
"types": [ | ||
"String" | ||
], | ||
"name": "html", | ||
@@ -58,3 +65,5 @@ "description": "string to be escaped" | ||
"type": "return", | ||
"types": ["String"], | ||
"types": [ | ||
"String" | ||
], | ||
"description": "escaped html" | ||
@@ -68,5 +77,5 @@ }, | ||
"description": { | ||
"full": "<p>Escape the given <code>html</code>.</p>", | ||
"full": "<p>Escape the given <code>html</code>.</p>\n\n<h2>Examples</h2>\n\n<pre><code>utils.escape('&lt;script&gt;&lt;/script&gt;')\n// =&gt; '&lt;script&gt;&lt;/script&gt;'\n</code></pre>", | ||
"summary": "<p>Escape the given <code>html</code>.</p>", | ||
"body": "" | ||
"body": "<h2>Examples</h2>\n\n<pre><code>utils.escape('&lt;script&gt;&lt;/script&gt;')\n// =&gt; '&lt;script&gt;&lt;/script&gt;'\n</code></pre>" | ||
}, | ||
@@ -280,10 +289,2 @@ "isPrivate": false, | ||
```js | ||
ctx: | ||
{ type: 'method', | ||
constructor: 'User', | ||
name: 'toString', | ||
string: 'User.prototype.toString()' } } | ||
``` | ||
### Ignore | ||
@@ -290,0 +291,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34266
751
332
0