lib/prod.js
// Return the content of a reference without definition as Markdown.
Return the content of a reference without definition as Markdown.
Return the content of a reference without definition as Markdown .
function revert(h, node) {
  var subtype = node.referenceType;
  var suffix = ']';
  var contents;
  var head;
  var tail;
  if (subtype === 'collapsed') {
    suffix += '[]';
  } else if (subtype === 'full') {
    suffix += '[' + (node.label || node.identifier) + ']';
  }
  if (node.type === 'imageReference') {
    return unistBuilder('text', '![' + node.alt + suffix)
  }
  contents = all_1$1(h, node);
  head = contents[0];
  if (head && head.type === 'text') {
    head.value = '[' + head.value;
  } else {
    contents.unshift(unistBuilder('text', '['));
  }
  tail = contents[contents.length - 1];
  if (tail && tail.type === 'text') {
    tail.value += suffix;
  } else {
    contents.push(unistBuilder('text', suffix));
  }
  return contents
}
function revert ( h , node ) { var subtype = node . referenceType ; var suffix = ']' ; var contents ; var head ; var tail ; if ( subtype === 'collapsed' ) { suffix += '[]' ; } else if ( subtype === 'full' ) { suffix += '[' + ( node . label || node . identifier ) + ']' ; } if ( node . type === 'imageReference' ) { return unistBuilder ( 'text' , '![' + node . alt + suffix ) } contents = all_1$1 ( h , node ) ; head = contents [ 0 ] ; if ( head && head . type === 'text' ) { head . value = '[' + head . value ; } else { contents . unshift ( unistBuilder ( 'text' , '[' ) ) ; } tail = contents [ contents . length - 1 ] ; if ( tail && tail . type === 'text' ) { tail . value += suffix ; } else { contents . push ( unistBuilder ( 'text' , suffix ) ) ; } return contents }
Return the content of a reference without definition as Markdown.
Return the content of a reference without definition as Markdown .