react-native-markdown-display icon indicating copy to clipboard operation
react-native-markdown-display copied to clipboard

How to i display <a> </a> properly?

Open harshal-moneylion opened this issue 10 months ago • 3 comments

Below is my text

"Click here for google."

I am trying to render it with markdown react-native-markdown-display But its not processing it and show as plain text.

and its goes in text: as RenderRules

Using below version

"react-native-markdown-display": "^7.0.2",

harshal-moneylion avatar Mar 15 '25 15:03 harshal-moneylion

Not sure if this is your problem, but it seems like recent react-native might have broken onPress when Text/Views are nested in some way. Are you seeing this issue on Android as well?

For example, this work on Android but fails on IOS on React-native 77 (the World is not tappable).

     <Text pointerEvents="box-none">
        Hello
        <Text onPress={() => Alert.alert('foo')}>World</Text>
      </Text>

I tried this patch, but it didn't seem to fix it https://github.com/facebook/react-native/pull/49393

zzorba avatar Mar 20 '25 19:03 zzorba

My problem is its not even rendering the anchor tag as expected.

it just show plain <a href="https://some.com">Some text</a>

instead

Some text

harshal-moneylion avatar Mar 27 '25 09:03 harshal-moneylion

Could you share an example (e.g. a code snippet) of what you are trying just to make sure please @harshal-moneylion?

LouisDvr avatar Mar 27 '25 13:03 LouisDvr