react-native-markdown-renderer icon indicating copy to clipboard operation
react-native-markdown-renderer copied to clipboard

List of supported style and Rules

Open jaycee425 opened this issue 7 years ago • 8 comments

What should I put for example if I need to style a bullet list? or the text?

jaycee425 avatar Jul 05 '18 11:07 jaycee425

I was about to open a similar issue - is it possible to document what styles are supported and what the style names are?

Billy- avatar Jul 05 '18 14:07 Billy-

lurking around the code I think this is what is used https://github.com/mientjan/react-native-markdown-renderer/blob/master/src/lib/styles.js

not sure if it has something more, will continue try around :)

jaycee425 avatar Jul 05 '18 14:07 jaycee425

You can also overwrite any component in this file: https://github.com/mientjan/react-native-markdown-renderer/blob/master/src/lib/renderRules.js

This will allow you to entirely customize the component returned (including using your own styles).

Tvrqvoise avatar Jul 05 '18 17:07 Tvrqvoise

Style not applyed

<Markdown styles={{ text: { color: 'red'}}}> {text} </Markdown>

Anyone know what I'm missing?

arminghm avatar Jul 11 '18 20:07 arminghm

I found what I missed, we should use style property not styles for Markdown component.

arminghm avatar Jul 11 '18 21:07 arminghm

I guess I can close this then

jaycee425 avatar Jul 12 '18 11:07 jaycee425

I think this is still an issue - the supported styles etc. should be documented.

Billy- avatar Jul 13 '18 13:07 Billy-

@jaycee425 could you re-open the issue please? :beers:

Billy- avatar Jul 16 '18 15:07 Billy-