Expensify / react-native-live-markdown

Drop-in replacement for React Native's TextInput component with Markdown formatting.

Home Page:https://www.npmjs.com/package/@expensify/react-native-live-markdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Define mentions

nandorojo opened this issue · comments

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

<MarkdownTextInput 
  mentionable={['Fernando ]}
/>

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.

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

Yes, we're working on it in #439