meliorence / react-native-render-html

iOS/Android pure javascript react-native component that renders your HTML into 100% native views
https://meliorence.github.io/react-native-render-html/
BSD 2-Clause "Simplified" License
3.48k stars 589 forks source link

i want to render mathjax whenever a "div" comes with class "mathjax" #536

Closed amansaxenalapa11 closed 2 years ago

amansaxenalapa11 commented 2 years ago

Decision Table

Good Faith Declaration

Description

i want to render mathjax whenever a "div" comes with class "mathjax" i am using rnrh version "^5.1.1" i have applied Custom HTML tags but in props it give me whole data i want only data which is inside the perticular div tag is there any other way to render mathjax at specific points . if yes give example

React Native Information

"react-native": "0.63.4",

RNRH Version

"react-native-render-html": "^5.1.1"

Tested Platforms

Reproduction Platforms

Minimal, Reproducible Example

https://snack.expo.dev/@amansaxena11/mathjax

Additional Notes

renderers: { table, div : (child ,htmlAttribs, passProps , data , domNode) => { console.log(data.source.html, 'data') return(

</View>)}

},

jsamr commented 2 years ago

Hi @amansaxenalapa11, and thanks for your report! The issue tracker is meant for bug reports, not assistance. For assistance, post to StackOverflow or to our Discord such as suggested in our help guide. Thank you!