iamacup / react-native-markdown-display

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

Markdown doesn't work properly when fontFamily is provided in styles. #109

Closed alexeypopovich closed 4 years ago

alexeypopovich commented 4 years ago

Is it possible to use different fontFamily?

worstestes commented 3 years ago

@alexeypopovich did you figure this out? I'm running into issues regarding formatting while retaining a certain fontFamily

alexeypopovich commented 3 years ago

@worstestes I made it like this: const styles = StyleSheet.create({ body: { fontFamily: theme.fontFamily, }, em: { fontFamily: theme.fontItalic, }}; And same for headings, links, etc