updateCurrentAttributes = (currentAttributes, format) => {
  const {
    key,
    value
  } = format;

  if (value === null) {
    currentAttributes.delete(key);
  } else {
    currentAttributes.set(key, value);
  }
}
@param {Map<string,any>} currentAttributes
@param {ContentFormat} format

@private
@function