2
61%
ISC
marky-markdown bindings for BuckleScript in Reason

bs-marky-markdown

marky-markdown bindings for BuckleScript in Reason.

Has only been tested in the browser.

Installation

npm i bs-marky-markdown -s

Usage

Basic usage

let htmlStr = MarkyMarkdown.make("# My Markdown String")

With Options

let htmlStr = MarkyMarkdown.(
  make(~options=options(~highlightSyntax=false, ()), "# My Markdown String")
)

Available Options

  • sanitize: bool
  • nofollow: bool
  • linkify: bool
  • highlightSyntax: bool
  • prefixHeadingIds: bool
  • enableHeadingLinkIcons: bool
  • serveImagesWithCDN: bool
  • debug: bool
  • package (what even is this??)
  • headingAnchorClass: string
  • headingSvgClass: array(string)