Skip to content

purescript-react/purescript-react-markdown

Repository files navigation

purescript-react-markdown

PureScript FFI bindings for react-markdown. Allows you to render text written in Markdown.

Installation

spago install react-markdown

Usage

Import the Markdown module:

import React.Markdown as Markdown
import React.Basic.DOM.Simplified.Generated as R

Then use in your JSX:

el Markdown.markdown { remarkPlugins: [ Markdown.gfm, Markdown.breaks ] } "# Some Markdown text"