Commit dd69c32c authored by Deimos's avatar Deimos

Update cmark-gfm to 0.28.3.gfm.17

Required a couple of minor code changes as well, since they did some
minor renaming of a few things.
parent d232ecbe
......@@ -3,8 +3,8 @@ unpack-cmark-gfm:
- name: /tmp/cmark-gfm
- source:
- salt://cmark-gfm.tar.gz
- https://github.com/github/cmark/archive/0.28.0.gfm.11.tar.gz
- source_hash: sha256=8100698cd6fa4e3d870d9c7fbf92ef795a60ea3d7b00e3a4d1904105b1191fae
- https://github.com/github/cmark-gfm/archive/0.28.3.gfm.17.tar.gz
- source_hash: sha256=101ccfcd4f0fd8b05c20994006d992f2e81d6f96655afee4c66742ccc21f1f7d
- if_missing: /usr/local/lib/libcmark-gfm.so
- options: --strip-components=1
- enforce_toplevel: False
......
......@@ -5,7 +5,7 @@ from ctypes import CDLL, c_char_p, c_int, c_size_t, c_void_p
CMARK_DLL = CDLL("/usr/local/lib/libcmark-gfm.so")
CMARK_EXT_DLL = CDLL("/usr/local/lib/libcmark-gfmextensions.so")
CMARK_EXT_DLL = CDLL("/usr/local/lib/libcmark-gfm-extensions.so")
# enables the --hardbreaks option for cmark
# (can I import this? it's defined in cmark.h as CMARK_OPT_HARDBREAKS)
......@@ -49,7 +49,7 @@ cmark_render_html = CMARK_DLL.cmark_render_html
cmark_render_html.restype = c_char_p
cmark_render_html.argtypes = (c_void_p, c_int, c_void_p)
register = CMARK_EXT_DLL.core_extensions_ensure_registered
register = CMARK_EXT_DLL.cmark_gfm_core_extensions_ensure_registered
register.restype = None
register.argtypes = ()
register()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment