+
Skip to content

r-lib/commonmark

Repository files navigation

commonmark

Bindings to the CommonMark Reference Implementation

Build Status AppVeyor Build Status Coverage Status CRAN_Status_Badge CRAN RStudio mirror downloads Github Stars

The CommonMark specification defines a rationalized version of markdown syntax. This package uses the libcmark reference implementation for converting markdown text into various formats including html, latex and groff man. In addition it exposes the markdown parse tree in xml format.

Documentation

About the R package:

Other resources:

Hello World

library(commonmark)

# Get some markdown data
md <- readLines(curl::curl("https://raw.githubusercontent.com/yihui/knitr/master/NEWS.md"))

# Convert it into formats formats
html <- markdown_html(md)
xml <- markdown_xml(md)
man <- markdown_man(md)
tex <- markdown_latex(md)
cm <- markdown_commonmark(md)

About

High Performance CommonMark and Github Markdown Rendering in R

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载