We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code: { pattern: /\*\*([a-zA-Z]+)\*\*/g, style: styles.bold }, Input: This is the **bold** text
Required Output: This is the bold text
Please can someone tell me @jrichardlai @fbartho
The text was updated successfully, but these errors were encountered:
@MuhammadMattiullah
add this in your json renderText: (matchingString, matches) => matches[1]
renderText: (matchingString, matches) => matches[1]
works to me
Sorry, something went wrong.
Depending on your pattern, it could be a different element in the array
{ pattern: /(\*\*|__)(.*?)\1/, style: styles.bold, renderText: (matchingString, matches) => matches[2], },
@MuhammadMattiullah both of the suggestions above would have been what I recommend for you.
I'm going to close this since there are ways to do what you ask, but if it doesn't work, please do comment back, and I'm happy to reopen it.
If you find a bug or have a PR, I'm working on a new release in #79
No branches or pull requests
Required Output:
This is the bold text
Please can someone tell me @jrichardlai @fbartho
The text was updated successfully, but these errors were encountered: