RN-124 Improved text flow in markdown paragraphs and headers (#574)
This commit is contained in:
parent
dda0370b37
commit
5f49c11497
1 changed files with 6 additions and 2 deletions
|
|
@ -111,7 +111,9 @@ export default class Markdown extends PureComponent {
|
|||
renderParagraph = ({children}) => {
|
||||
return (
|
||||
<View style={style.block}>
|
||||
{children}
|
||||
<Text>
|
||||
{children}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
|
@ -119,7 +121,9 @@ export default class Markdown extends PureComponent {
|
|||
renderHeading = ({children, level}) => {
|
||||
return (
|
||||
<View style={[style.block, this.props.blockStyles[`heading${level}`]]}>
|
||||
{children}
|
||||
<Text>
|
||||
{children}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue