iamacup / react-native-markdown-display

React Native 100% compatible CommonMark renderer
MIT License
564 stars 166 forks source link

Incorrect types: sourceInfo missing from ASTNode #206

Open isaachinman opened 6 months ago

isaachinman commented 6 months ago

Just discovered that the ASTNode type is missing the sourceInfo property. I am currently using this property for code lang detection in code fences.

https://github.com/iamacup/react-native-markdown-display/blob/master/src/index.d.ts#L52

I assume sourceInfo is an optional string. Let me know if you want a PR.