getExtraAttributesForConvertToPath = function (elem) {
  const attrs = {}
  // TODO: make this list global so that we can properly maintain it
  // TODO: what about @transform, @clip-rule, @fill-rule, etc?
  ;['marker-start', 'marker-end', 'marker-mid', 'filter', 'clip-path'].forEach(
    function (item) {
      const a = elem.getAttribute(item)
      if (a) {
        attrs[item] = a
      }
    }
  )
  return attrs
}
Get a set of attributes from an element that is useful for convertToPath.
@function module:utilities.getExtraAttributesForConvertToPath
@param {Element} elem - The element to be probed
@returns {PlainObject<"marker-start"|"marker-end"|"marker-mid"|"filter"|"clip-path", string>} An object with attributes.