`text` markdown style overrides other text styles.
See original GitHub issueIf we configure the markdown to have a text
style prop like this:
{
text: {
color: 'black',
},
heading1: {
color: 'red',
fontSize: 20,
fontWeight: '500',
marginBottom: 15,
},
}
The text color
prop in the heading1
entry will be overridden. In order to customise the text color of the heading, the text
entry must be removed.
PS: I know I’ve opened several bugs, I’ll try to send PRs for them as soon as I can.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Override Styles #58 - outline/rich-markdown-editor - GitHub
Ideally I'd like to disable the effects of the CSS and let the whole style be determined by properties -- or at the...
Read more >css - How do I override the markdown styling in the content in ...
I want to define the typography I am using which also includes the font. I'd rather not do any CSS ! important but...
Read more >Getting Started | Markdown Guide
The overriding design goal for Markdown's formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document...
Read more >Handbook Markdown Guide - GitLab
If you want the text inside the alert box to be green as well, we need to apply custom styles to the markdown...
Read more >Defining and Applying Text Styles - Apple Developer
Defining and Applying Text Styles. Define and apply custom, default, and inline text styles, or use HTML tags or Markdown syntax to style...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The same issue seems to appear also with other tags, such as link, strong and so on. It seems to be caused by text tag always being at the root of every text, overriding any specific overlapping definitions, such as link or strong.
Essentially this prevents from changing default text color while also using different color for the links. Any ideas how to overcome this?
This would be handle in v2 👍