Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return attrs => {
return attrs.fontSize ? updateMark(type, attrs) : removeMark(type);
};
}
return attrs => {
if (attrs.href || attrs.target || attrs.id) {
return updateMark(type, attrs);
}
return removeMark(type);
};
}
return attrs => {
if (attrs.href) {
return updateMark(type, attrs)
}
return removeMark(type)
}
}
return attrs => {
if (attrs.style) {
return updateMark(type, attrs);
}
return removeMark(type);
};
}