markdown-to-jsx icon indicating copy to clipboard operation
markdown-to-jsx copied to clipboard

Is there an equivalent package for react-native for markdown-to-jsx

Open subhranshudas opened this issue 3 years ago • 4 comments

Hello All, I am using this awesome package for my react web uses. Was wondering is there an equivalent package for react-native ??

i am looking for the following support -

  • supports markdown (e.g. - **Header**)
  • supports custom tags (e.g. - <MyTag color="blue">Example</MyTag>)
  • supports mix of markdown & Custom tags (e.g. - <MyTag>*Mixed Example*</MyTag>)

Thanks Again!!

Cheers!!

subhranshudas avatar Jul 22 '22 05:07 subhranshudas

Can you override the presentation of every HTML element? https://github.com/probablyup/markdown-to-jsx#optionsoverrides---override-any-html-tags-representation

Seems like you could represent them as react native

with appropriate react native styling. Though I have no idea if this tool works at build time in a react native context.

jvanderberg avatar Aug 31 '22 18:08 jvanderberg

Hmm, what if you just plugged in the RN components in overrides for all the common HTML tags?

quantizor avatar Jan 31 '23 03:01 quantizor

Hmm, what if you just plugged in the RN components in overrides for all the common HTML tags?

I've done just this and it works exactly as expected.

gtjamesa avatar Feb 07 '23 13:02 gtjamesa