diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-14 15:49:22 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-14 15:49:22 -0800 |
commit | bfbda17036768e6793aeebe666141003e3afb014 (patch) | |
tree | ab230723bb394a7b847b89f6ad22b87e117cf94c /src/cmark.c | |
parent | f2c2f626292ac83519bc478271b5678efcf67586 (diff) |
inline make_autolink.
Diffstat (limited to 'src/cmark.c')
-rw-r--r-- | src/cmark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmark.c b/src/cmark.c index 56bbb93..05bd7df 100644 --- a/src/cmark.c +++ b/src/cmark.c @@ -7,7 +7,7 @@ #include "cmark.h" #include "buffer.h" -extern unsigned char *cmark_markdown_to_html(unsigned char *text, int len) +unsigned char *cmark_markdown_to_html(unsigned char *text, int len) { node_block *blocks; strbuf htmlbuf = GH_BUF_INIT; @@ -129,7 +129,7 @@ unsigned char *clean_autolink(chunk *url, int is_email) return strbuf_detach(&buf); } -cmark_node_inl* cmark_make_autolink(cmark_node_inl* label, chunk url, int is_email) +inline cmark_node_inl* cmark_make_autolink(cmark_node_inl* label, chunk url, int is_email) { return cmark_make_link(label, clean_autolink(&url, is_email), NULL); } |