iamacup / react-native-markdown-display

React Native 100% compatible CommonMark renderer
MIT License
590 stars 169 forks source link

ASTNode interface in declaration file lacks a few properties #130

Closed zecakeh closed 10 months ago

zecakeh commented 3 years ago

I'm mainly thinking of sourceMeta that allows Markdown-it plugins to add extra data.

Right now we can use attributes to pass extra data to the render rules, but if we want to reuse the plugin with an HTML renderer, the data shows up on the HTML elements.

Is it an oversight or is there a reason to this?

ahkhanjani commented 3 years ago

Added in #132.