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

CommonMark support

Open ericpoulinnz opened this issue 4 months ago • 3 comments

Is CommonMark support actually coming? I noticed in the README it says it is, but then I saw that line was added in January of last year... are there any updates?

Most of my issues with this library has been in customising the parsing logic to handle the differences between ExpeniMark and CommonMark. It would have never been a problem if MarkdownText was implemented (so I could have used ExpeniMark on both view/edit modes), but I had to go with a different Markdown view renderer which supports the much more standard CommonMark.

ericpoulinnz avatar Aug 12 '25 23:08 ericpoulinnz

@ericpoulinnz Not really, we don't support CommonMark out-of-the-box – however, you can pass your own Markdown parser as a worklet to parser prop of MarkdownTextInput component to fully customize parser logic.

tomekzaw avatar Aug 13 '25 07:08 tomekzaw

@tomekzaw I feel then you should update this section, because that's a bit misleading if it's not actually planned.

Yes I implemented a custom parser, thanks. However this issue is about CommonMark support in this library as stated was coming in the README. So if that's not the case, I think updating that makes most sense.

ericpoulinnz avatar Aug 14 '25 21:08 ericpoulinnz

@ericpoulinnz I've removed the part about CommonMark parser in https://github.com/Expensify/react-native-live-markdown/pull/727, thanks for suggesting that.

tomekzaw avatar Sep 05 '25 08:09 tomekzaw