Hi, Does anybody know how to get React-Markdown to...
# react
c
Hi, Does anybody know how to get React-Markdown to work with remark plugins ? my markdown component looks like this, and it works np
Copy code
@file:JsModule("react-markdown")
@file:JsNonModule
package <http://components.blog|components.blog>


import react.ComponentClass
import react.Props
import react.PropsWithChildren

@JsName("default")
external val ReactMarkdown: ComponentClass<MarkdownProps>

external interface MarkdownProps : PropsWithChildren{
    var remarkPlugins : Array<dynamic> 
}
and my remark file looks like (but won't get picked up by react-markdown)
Copy code
@file:JsModule("remark-gfm")
@file:JsNonModule

package <http://components.blog|components.blog>

@JsName("default")
external val RemarkGfm: dynamic
I hook them up as below, and as stated earlier, I get the rendered content however remark does not get applied.
Copy code
ReactMarkdown {
    remarkPlugins = arrayOf(RemarkGfm)

    +content
}
t
Duplicated message == less chances on success
c
Ahh my fault, I literally found out about this #react thread less than 16h ago and published here thinking I can get a chance of reply.
t
Link on old message can be used. People will see one discussion thread