Closed joelworsham closed 4 years ago
I want to overwrite the image render method, so it can also support videos and audio. This does not work, the method is never called:
image
<MarkdownView rules={{ image: { render: (node, output, state, styles) => { console.log('oh...') return <Text>Test</Text> } } }} > {article.content} </MarkdownView>
Just trying to start by getting Test to appear on the page, but it does not, and that console is never logged.
Test
I just realized that it was something in the matcher. I tried this for list and it worked 🤔
list
I want to overwrite the
image
render method, so it can also support videos and audio. This does not work, the method is never called:Just trying to start by getting
Test
to appear on the page, but it does not, and that console is never logged.