bs-marky-markdown
v2.1.7
Published
marky-markdown bindings for BuckleScript in Reason
Downloads
3
Maintainers
Readme
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
- [x] sanitize: bool
- [x] nofollow: bool
- [x] linkify: bool
- [x] highlightSyntax: bool
- [x] prefixHeadingIds: bool
- [x] enableHeadingLinkIcons: bool
- [x] serveImagesWithCDN: bool
- [x] debug: bool
- [ ] package (what even is this??)
- [x] headingAnchorClass: string
- [x] headingSvgClass: array(string)