iamacup / react-native-markdown-display

React Native 100% compatible CommonMark renderer
MIT License
604 stars 172 forks source link

Custom rule does not work #210

Open sovetski opened 9 months ago

sovetski commented 9 months ago

Hi,

This custom role does not work:

const rules = {
    u: (node, children, parent, styles) => (
        <Text key={node.key} style={[styles.text, { textDecorationLine: "underline" }]}>
            {children}
        </Text>
    ),
};

I guess because it is HTML, but markdown does not support underlined text, so I tried to add my own but does not works, is it possible to support HTML too?