summaryrefslogtreecommitdiff
path: root/src/cmark.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-27 21:35:54 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-27 21:35:54 -0700
commit62cb38bf8a826125fba0034221343aa70dd3d415 (patch)
tree67348fa88068e1fdb2fca04d74c0ce60072bd280 /src/cmark.c
parentaca7161e53ec40f6979d024d84afeb36fa911292 (diff)
Use clang-format, llvm style, for formatting.
* Reformatted all source files. * Added 'format' target to Makefile. * Removed 'astyle' target. * Updated .editorconfig.
Diffstat (limited to 'src/cmark.c')
-rw-r--r--src/cmark.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/src/cmark.c b/src/cmark.c
index ca9807b..3491199 100644
--- a/src/cmark.c
+++ b/src/cmark.c
@@ -6,26 +6,18 @@
#include "cmark.h"
#include "buffer.h"
-int cmark_version()
-{
- return CMARK_VERSION;
-}
+int cmark_version() { return CMARK_VERSION; }
-const char *cmark_version_string()
-{
- return CMARK_VERSION_STRING;
-}
+const char *cmark_version_string() { return CMARK_VERSION_STRING; }
-char *cmark_markdown_to_html(const char *text, size_t len, int options)
-{
- cmark_node *doc;
- char *result;
+char *cmark_markdown_to_html(const char *text, size_t len, int options) {
+ cmark_node *doc;
+ char *result;
- doc = cmark_parse_document(text, len, options);
+ doc = cmark_parse_document(text, len, options);
- result = cmark_render_html(doc, options);
- cmark_node_free(doc);
+ result = cmark_render_html(doc, options);
+ cmark_node_free(doc);
- return result;
+ return result;
}
-