node_modules/mdsvex/dist/main.es.js
// which size should be used.
which size should be used.
which size should be used .
function detab(value, size) {
  var string = typeof value === 'string';
  var length = string && value.length;
  var start = 0;
  var index = -1;
  var column = -1;
  var tabSize = size || 4;
  var results = [];
  var code;
  var add;
  if (!string) {
    throw new Error('detab expected string')
  }
  while (++index < length) {
    code = value.charCodeAt(index);
    if (code === tab$1) {
      add = tabSize - ((column + 1) % tabSize);
      column += add;
      results.push(value.slice(start, index) + repeatString(' ', add));
      start = index + 1;
    } else if (code === lineFeed$1 || code === carriageReturn) {
      column = -1;
    } else {
      column++;
    }
  }
  results.push(value.slice(start));
  return results.join('')
}
function detab ( value , size ) { var string = typeof value === 'string' ; var length = string && value . length ; var start = 0 ; var index = - 1 ; var column = - 1 ; var tabSize = size || 4 ; var results = [ ] ; var code ; var add ; if ( ! string ) { throw new Error ( 'detab expected string' ) } while ( ++ index < length ) { code = value . charCodeAt ( index ) ; if ( code === tab$1 ) { add = tabSize - ( ( column + 1 ) % tabSize ) ; column += add ; results . push ( value . slice ( start , index ) + repeatString ( ' ' , add ) ) ; start = index + 1 ; } else if ( code === lineFeed$1 || code === carriageReturn ) { column = - 1 ; } else { column ++ ; } } results . push ( value . slice ( start ) ) ; return results . join ( '' ) }
which size should be used.
which size should be used .