code: function mklink (anchor, name) {
      var id = mkid(name);
      if (anchor) {
          if (!defined[id]) {
              defined[id] = true;
              return "<a name=\"" + id + "\">" + name + "</a>";
          }
          else
              return name;
      }
      else
          return "<a href=\"#" + id + "\">" + name + "</a>";
  }
docs: /*  convert double-type