question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`text` markdown style overrides other text styles.

See original GitHub issue

If 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:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alizbazarcommented, Jun 7, 2017

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?

0reactions
CharlesMangwacommented, Dec 8, 2017

This would be handle in v2 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found