UNPKG

react-native-markdown-renderer

Version:

Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer).

32 lines (30 loc) 392 B
/** * * @type {[string,string,string,string,string,string,string]} */ const textTypes = [ 'text', 'span', 'strong', 'a', 's', 'em', // 'h1', // 'h2', // 'h3', // 'h4', // 'h5', // 'h6', // 'h7', // 'h8', // 'h9', 'br', ]; /** * * @param node * @return {boolean} */ export default function getIsTextType(type) { return textTypes.indexOf(type) > -1; }