Expensify / react-native-live-markdown

Drop-in replacement for React Native's TextInput component with Markdown formatting.
https://www.npmjs.com/package/@expensify/react-native-live-markdown
MIT License
787 stars 56 forks source link

Define mentions #167

Open nandorojo opened 7 months ago

nandorojo commented 7 months ago

Is there a way to define the possible names which can get mentioned? Something like:

<MarkdownTextInput 
  mentionable={['Fernando ]}
/>
tomekzaw commented 7 months ago

Currently, the Markdown parser is hard-coded in the library, but long-term we plan to add possibility to use custom parsers implemented in JavaScript as worklets. This will allow for handling cases just like this one and many more.

pleerock commented 1 month ago

Right now it seems like only @here is highlighted, which is... weird. Would be great to have a control over that.

tomekzaw commented 1 month ago

Yes, we're working on it in https://github.com/Expensify/react-native-live-markdown/pull/439