4 if (!s
.match(/[a-zA-Z]/)) {
38 var is_namespace
, is_method
;
40 if ((is_method
= (s
.indexOf("::") !== -1)) || (is_namespace
= (s
.indexOf("\\") !== -1))) {
41 return "<a href=\"/" + s
.replace(/::|\\/g, "/") + (is_method ? ".md
":"") + "\">";
44 switch (s.toLowerCase()) {
47 if (s.substring(0,1) !== "$") {
54 return "<span
class=\"var\">";
58 if (s.toUpperCase() === s) {
63 //console.log("node
", s);
70 return document.createTextNode(s);
76 $n.text().split(/([^a-zA-Z_\\\$:]+)/).forEach(function(v) {
82 //console.log("walk
", i, e);
84 e && $.each(e.childNodes, function(i, n) {
85 //console.log(n.nodeName);
97 $(document).ready(function() {
98 //console.log("ready
");
100 $("h1
,h2
,h3
,h4
,h5
,h6
,p
,li
,code
").each(walk);