node_modules/mdsvex/dist/main.es.js
/* Stringify the given HAST node. */
Stringify the given HAST node.
Stringify the given HAST node .
function toHTML(node, options) {
  var settings = options || {};
  var quote = settings.singleQuote ? SQ : DQ;
  var printWidth = settings.printWidth === undefined ? 80 : settings.printWidth;
  var useTabs = settings.useTabs;
  var tabWidth = settings.tabWidth || 2;
  var wrapAttributes = settings.wrapAttributes;
  if (useTabs) {
    tabWidth = '\t';
  } else if (typeof tabWidth === 'number') {
    tabWidth = repeatString(' ', tabWidth);
  }
  return one_1(
    {
      valid: settings.allowParseErrors ? 0 : 1,
      safe: settings.allowDangerousCharacters ? 0 : 1,
      schema: settings.space === 'svg' ? svg_1 : html_1,
      omit: settings.omitOptionalTags && omission,
      quote: quote,
      printWidth: printWidth,
      tabWidth: tabWidth,
      wrapAttributes: wrapAttributes,
      tightDoctype: Boolean(settings.tightDoctype),
      tightLists: settings.tightCommaSeparatedLists,
      voids: settings.voids || voids.concat(),
      entities: settings.entities || {},
      close: settings.closeSelfClosing,
      tightClose: settings.tightSelfClosing,
      closeEmpty: settings.closeEmptyElements
    },
    node
  )
}
function toHTML ( node , options ) { var settings = options || { } ; var quote = settings . singleQuote ? SQ : DQ ; var printWidth = settings . printWidth === undefined ? 80 : settings . printWidth ; var useTabs = settings . useTabs ; var tabWidth = settings . tabWidth || 2 ; var wrapAttributes = settings . wrapAttributes ; if ( useTabs ) { tabWidth = '\t' ; } else if ( typeof tabWidth === 'number' ) { tabWidth = repeatString ( ' ' , tabWidth ) ; } return one_1 ( { valid : settings . allowParseErrors ? 0 : 1 , safe : settings . allowDangerousCharacters ? 0 : 1 , schema : settings . space === 'svg' ? svg_1 : html_1 , omit : settings . omitOptionalTags && omission , quote : quote , printWidth : printWidth , tabWidth : tabWidth , wrapAttributes : wrapAttributes , tightDoctype : Boolean ( settings . tightDoctype ) , tightLists : settings . tightCommaSeparatedLists , voids : settings . voids || voids . concat ( ) , entities : settings . entities || { } , close : settings . closeSelfClosing , tightClose : settings . tightSelfClosing , closeEmpty : settings . closeEmptyElements } , node ) }
Stringify the given HAST node.
Stringify the given HAST node .