You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+66-5Lines changed: 66 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ a web-view markdown renderer but a renderer that uses native components for all
5
5
6
6
### Compatibility with react-native-markdown-renderer
7
7
8
-
This is intended to be a drop-in replacement for react-native-markdown-renderer, with a variety of bug fixes and enhancements.
8
+
This is intended to be a drop-in replacement for react-native-markdown-renderer, with a variety of bug fixes and enhancements - **Due to how the new style rules work, there may be some tweaking needed**, [see how to style stuff section below](#How-to-style-stuff)
Text styles are applied in a way that makes it much more convenient to manage changes to global styles while also allowing fine tuning of individual elements.
48
+
49
+
Think of the implementation like applying styles in CSS. changes to the body effect everything, but can be overwritten further down the style / component tree.
50
+
51
+
The gotcha is if you try to use the text style override to change all text styles, this only changes things that are rendered using the ‘text’ rule. Instead you should change root, and then modify child styles (like code blocks etc) as needed.
**NOTE:**There is no merge of the style properties, if you specify a style property, it will completely overwrite existing styles for that property.
617
+
**NOTE:**by default there is no of the style properties, if you specify a style property, it will completely overwrite existing styles for that property**UNLESS** you specify `mergeStyle` as true.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "react-native-markdown-display",
3
-
"version": "4.1.0",
3
+
"version": "5.0.0",
4
4
"description": "Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer), originally created by Mient-jan Stelling as react-native-markdown-renderer",
0 commit comments