code: function purify(input) {
      var result = [], indent = null, codeBlock = false;
      
      // We can have two types of lines:
      // - those beginning with *
      // - and those without it
      input.split("\n").forEach(function(line) {
          // chomp !
          line = line.replace(/(\n|\r)+$/, '');
  
          if (!codeBlock && /^\s*\*\s*```/.test(line))
            codeBlock = true;
          else if (codeBlock && /^\s*\*\s*```/.test(line))
            codeBlock = false;
  
          var m;
          if ( ( m = line.match(/^\s*\*\s?(.*)$/)) ) {
              // When comment contains *-lines, switch indent-trimming off
              indent = 0;
              
              if (codeBlock)
                result.push(m[1]);
              else
                result.push(m[1].replace(/^\s+/,""));
          }
          else if (/^\s*$/.test(line)) {
              // pass-through empty lines
              result.push(line);
          }
          else if (indent === undefined && (m = line.match(/^(\s*)(.*?$)/) ) ) {
              // When indent not measured, measure it and remember
              indent = m[1];
              result.push(m[2]);
          }
          else {
              // Trim away indent if available
              //result.push(line.replace(new RegExp("^\s{0," + indent + "}"), ""));
              result.push(line.replace(/^\s+/,""));
          }
      });
  
      return result.join("\n");
  }
docs: Extracts content inside /** ...