package = "cmark"
version = "0.31.2.1-1"
source = {
    url = "git+https://github.com/leafo/cmark-lua.git",
    tag = "v0.31.2.1"
}
description = {
    summary = [[Lua wrapper for libcmark, CommonMark Markdown parsing
      and rendering library]],
    detailed = [[cmark exposes the libcmark API, as
      documented in the `cmark(3)` man page, and adds a
      more lua-esque interface for walking the node tree.]],
    homepage = "https://github.com/leafo/cmark-lua",
    license = "BSD2",
    maintainer = "Leaf Corcoran <leafot@gmail.com>",
}
dependencies = {
    "lua >= 5.1",
}
build = {
    type = "builtin",
    modules = {
        cmark = {
             sources = { "cmark_lua.c",
                         "ext/blocks.c",
                         "ext/houdini_html_u.c",
                         "ext/references.c",
                         "ext/buffer.c",
                         "ext/html.c",
                         "ext/render.c",
                         "ext/cmark.c",
                         "ext/inlines.c",
                         "ext/scanners.c",
                         "ext/cmark_ctype.c",
                         "ext/iterator.c",
                         "ext/utf8.c",
                         "ext/commonmark.c",
                         "ext/latex.c",
                         "ext/xml.c",
                         "ext/houdini_href_e.c",
                         "ext/man.c",
                         "ext/houdini_html_e.c",
                         "ext/node.c",
                       },
             incdirs = { ".", "ext" }
        },
        ["cmark.builder"] = "cmark/builder.lua"
    },
}
