Comments (2)
This is a pain and is caused because of the wrapping of the textgroup rule on the underlying text.
The textgroup rule is added manually by this library because it is needed for wrapping text with text to allow multi line stuff - example below:
{/* this is how it is today - displayed correctly - View is a paragraph, Text is textgroup and child Text's are text*/}
<View style={{
flexWrap: 'wrap',
flexDirection: 'row',
width: '100%'}}>
<Text>
<Text>hey there</Text>
<Text style={{color: 'red'}}> some in line code hilight or something that is really long =wooooo </Text>
<Text>the final bit of text</Text>
</Text>
</View>
<View style={{marginTop: 30}}></View>
{/* this is how it would be - with no text group - displayed correctly - View is a paragraph, child Text's are text*/}
<View style={{
flexWrap: 'wrap',
flexDirection: 'row',
width: '100%'}}>
<Text>hey there</Text>
<Text style={{color: 'red'}}> some in line code </Text>
<Text>the final bit of text</Text>
</View>
<View style={{marginTop: 30}}></View>
{/* this is how it would be - with no text group - showing the problem without text group - View is a paragraph, child Text's are text*/}
<View style={{
flexWrap: 'wrap',
flexDirection: 'row',
width: '100%'}}>
<Text>hey there</Text>
<Text style={{color: 'red'}}> some in line code hilight or something that is really long =wooooo </Text>
<Text>the final bit of text</Text>
</View>
The problem is that the text group <Text>
element wrapping the actual display <Text>
item prevents the actual display item from applying the style correctly on android. Not sure exactly what to do but ideally it would be great to remove the textgroup item all together....
from react-native-markdown-display.
i dont understand why this issue is completed, none of the issues linked is a clear fix to the problem
from react-native-markdown-display.
Related Issues (20)
- Markdown unable to parse adjacent / nesting bold italic asterisk HOT 2
- -
- Peer dependency requirement of newer react versions HOT 4
- How to render markdown with colon
- Error when using code block HOT 1
- No support for <u> tag & Link click does not work & & Can't pass both style and rules at the same time HOT 3
- upgrade markdown-it for vulnerabilty
- Type for MarkdownStatic's component props is missing `children` HOT 4
- In the flex row layout, the list will be truncated
- Does not work on Android HOT 2
- Markdown unable to parse bold italic HOT 1
- Generates 2 moderate severity vulnerabilities HOT 2
- Remount issue for AST nodes HOT 1
- Incorrect types: sourceInfo missing from ASTNode
- Render Error - MarkdownIT HOT 1
- openUrl types are not correct
- textAlign: "center" not working on second paragraph HOT 2
- Custom rule does not work
- Rendering math Equation HOT 2
- Selectable. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-markdown-display.