How to use the blessed-contrib.markdown function in blessed-contrib

To help you get started, we’ve selected a few blessed-contrib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dundalek / react-blessed-contrib / src / index.js View on Github external
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,
    });
  }
};