index.js
function Breakdance(options) {
  if (typeof options === 'string') {
    let proto = Object.create(Breakdance.prototype);
    Breakdance.call(proto);
    return proto.render.apply(proto, arguments);
  }

  if (!(this instanceof Breakdance)) {
    let proto = Object.create(Breakdance.prototype);
    Breakdance.call(proto);
    return proto;
  }

  this.define('cache', {});
  this.options = extend({}, options);
  this.plugins = {
    fns: [],
    preprocess: [],
    handlers: {},
    before: {},
    after: {}
  };
}
function Breakdance(options) {
  if (typeof options === 'string') {
    let proto = Object.create(Breakdance.prototype);
    Breakdance.call(proto);
    return proto.render.apply(proto, arguments);
  }

  if (!(this instanceof Breakdance)) {
    let proto = Object.create(Breakdance.prototype);
    Breakdance.call(proto);
    return proto;
  }

  this.define('cache', {});
  this.options = extend({}, options);
  this.plugins = {
    fns: [],
    preprocess: [],
    handlers: {},
    before: {},
    after: {}
  };
}
function Breakdance ( options ) { if ( typeof options === 'string' ) { let proto = Object . create ( Breakdance . prototype ) ; Breakdance . call ( proto ) ; return proto . render . apply ( proto , arguments ) ; } if ( ! ( this instanceof Breakdance ) ) { let proto = Object . create ( Breakdance . prototype ) ; Breakdance . call ( proto ) ; return proto ; } this . define ( 'cache' , { } ) ; this . options = extend ( { } , options ) ; this . plugins = { fns : [ ] , preprocess : [ ] , handlers : { } , before : { } , after : { } } ; }
Create an instance of `Breakdance` with the given `options`.

{{example "Breakdance"}}

@param {Object|String} `options` Pass options if you need to instantiate Breakdance, or a string to convert HTML to markdown.
@api public
Create an instance of Breakdance with the given options .