{{>copyright_header}}

import { Plugin, PluginApi } from 'europa-core';

export default function (api: PluginApi): Plugin {
  return {
    // TODO: Add any tag converters or remove field if this plugin offers no converters
    converters: {
      // TODO: Rename `TAGNAME` to any HTML tag name that is desired to be converted
      TAGNAME: {
        startTag(conversion, context): boolean {
          // TODO: Complete or remove method if this plugin does not need to hook into the start of conversion for this tag
          return true;
        },

        endTag(conversion, context) {
          // TODO: Complete or remove method if this plugin does not need to hook into the end of conversion for this tag
        },
      },
    },

    convertText(value, conversion): boolean {
      // TODO: Complete or remove method if this plugin does not need to hook into the conversion of text nodes
      return false;
    },

    startConversion(conversion) {
      // TODO: Complete or remove method if this plugin does not need to hook into the start of conversion
    },

    endConversion(conversion) {
      // TODO: Complete or remove method if this plugin does not need to hook into the end of conversion
    },
  };
}
