Benjamin-Dobell / react-native-markdown-view

MarkdownView for React Native
MIT License
190 stars 77 forks source link

Is there a simple way to exclude a custom rule if the word has been already matched by a header? #52

Open matt-dalton opened 3 years ago

matt-dalton commented 3 years ago

We have a custom rule for displaying glossary terms. I am struggling to understand how to manipulate this from the docs.

We've already built a rule for it that works well, but we want to avoid rendering it if it appears in a header. I thought this would be easy but I can't find any contextual information about what other rules have been matched in either the match or the render function.

Is there a simple way of doing this?