pfitzseb / GithubMarkdown.jl

MIT License
6 stars 2 forks source link
gfm julia markdown

GithubMarkdown.jl

CI Codecov

Render a markdown file (conforming to the gfm spec) to an IOBuffer or directly to a file.

rendergfm(fileout::AbstractString, file::AbstractString; documenter = false, format="html")
rendergfm(io, file::AbstractString; documenter = false, format="html")

Render the markdown document file to fileout or io, following the cmark-gfm spec.

You can also use rendergfm to work with strings directly:

julia> "a **b** c `def` [g](https://julialang.org)" |> rendergfm
"<p>a <strong>b</strong> c <code>def</code> <a href=\"https://julialang.org\">g</a></p>\n"