Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { children, ...props } = this.props;
if (typeof children === 'string' && !props.markdown) {
props.markdown = children;
}
return React.createElement('__BLESSED_WRAPPER__', {
...props,
__BLESSED_WIDGET__: contrib.markdown,
ref: (el) => this.widget = el,
});
}
};