CharlesMangwa / react-native-simple-markdown

📜 React Native Markdown component (iOS & Android).
https://www.npmjs.com/package/react-native-simple-markdown
MIT License
414 stars 134 forks source link

rules.js matching `heading X` instead of `headingX` #97

Open schumannd opened 6 years ago

schumannd commented 6 years ago

In this line, there is a space that should not be there. I guess the bug was introduced in a refactoring after the package was released, without testing the code again.

I only stumbled upon it in my quest to fork this repository and use the latest simple-markdown version which fixes #92

https://github.com/CharlesMangwa/react-native-simple-markdown/blob/277a41b56d84707fe300cb820f259aae6a3f1593/src/rules.js#L99

I have included a fix to this in my PR #93