Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-10-22 04:58:04 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-10-22 05:02:30 +0400
commit493d3b9f7c0fd4e09ed9289ae0968ef6c73be054 (patch)
tree0e5285450c12d659e9074ddff71e8d91d2bc11bc /tools
parent8498ee03bc271e4d886c02fab9af2d2d47d2ddb0 (diff)
parentff942c6b39d06e81d82c30bc91a159a0440b6d9b (diff)
Merge remote branch 'origin/v0.4'
Conflicts: ChangeLog Makefile deps/libev/wscript doc/index.html doc/template.html lib/net.js src/node_version.h src/platform_cygwin.cc test/pummel/test-net-write-callbacks.js test/simple/test-buffer.js
Diffstat (limited to 'tools')
-rw-r--r--tools/doctool/doctool.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/doctool/doctool.js b/tools/doctool/doctool.js
index 4b4f2f07b7f..da31445fe13 100644
--- a/tools/doctool/doctool.js
+++ b/tools/doctool/doctool.js
@@ -88,6 +88,9 @@ function convertData(data) {
.replace(/<hr><\/hr>/g, "<hr />")
.replace(/(\<h[2-6])\>([^<]+)(\<\/h[1-6]\>)/gmi, function(o, ts, c, te) {
return ts+' id="'+formatIdString(c)+'">'+c+te;
+ })
+ .replace(/(\<h[3-4][^>]+\>)([^<]+)(\<\/h[3-4]\>)/gmi, function(o, ts, c, te) {
+ return ts+c+' <a href="#'+formatIdString(c)+'">#</a>'+te;
});
return html;