'use strict';

var blockquote = require('./blockquote.js');
var _break = require('./break.js');
var code = require('./code.js');
var _delete = require('./delete.js');
var emphasis = require('./emphasis.js');
var footnoteReference = require('./footnote-reference.js');
var footnote = require('./footnote.js');
var heading = require('./heading.js');
var html = require('./html.js');
var imageReference = require('./image-reference.js');
var image = require('./image.js');
var inlineCode = require('./inline-code.js');
var linkReference = require('./link-reference.js');
var link = require('./link.js');
var listItem = require('./list-item.js');
var list = require('./list.js');
var paragraph = require('./paragraph.js');
var root = require('./root.js');
var strong = require('./strong.js');
var table = require('./table.js');
var tableRow = require('./table-row.js');
var tableCell = require('./table-cell.js');
var text = require('./text.js');
var thematicBreak = require('./thematic-break.js');

/**
 * Default handlers for nodes.
 */
const handlers = {
  blockquote: blockquote.blockquote,
  break: _break.hardBreak,
  code: code.code,
  delete: _delete.strikethrough,
  emphasis: emphasis.emphasis,
  footnoteReference: footnoteReference.footnoteReference,
  footnote: footnote.footnote,
  heading: heading.heading,
  html: html.html,
  imageReference: imageReference.imageReference,
  image: image.image,
  inlineCode: inlineCode.inlineCode,
  linkReference: linkReference.linkReference,
  link: link.link,
  listItem: listItem.listItem,
  list: list.list,
  paragraph: paragraph.paragraph,
  root: root.root,
  strong: strong.strong,
  table: table.table,
  tableCell: tableCell.tableCell,
  tableRow: tableRow.tableRow,
  text: text.text,
  thematicBreak: thematicBreak.thematicBreak,
  toml: ignore,
  yaml: ignore,
  definition: ignore,
  footnoteDefinition: ignore
};

// Return nothing for nodes that are ignored.
function ignore() {
  // To do: next major: return `undefined`.
  return null
}

exports.handlers = handlers;
//# sourceMappingURL=index.js.map
