cmark

My personal build of CMark ✏️

Commit
cc78b3e9e2c05201469356730c60f6bf3d073232
Parent
4a3ed6a7ce035f1b0ad7c8130242d052dc5efcec
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #13 from nwellnhof/documentation-fix

Update code examples in documentation

Diffstat

1 file changed, 3 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/cmark.h 5 3 2
diff --git a/src/cmark.h b/src/cmark.h
@@ -412,11 +412,12 @@ cmark_consolidate_text_nodes(cmark_node *root);
  *
  * Simple interface:
  *
- *     cmark_node *document = cmark_parse_document("Hello *world*", 12);
+ *     cmark_node *document = cmark_parse_document("Hello *world*", 12,
+ *                                                 CMARK_OPT_DEFAULT);
  *
  * Streaming interface:
  *
- *     cmark_parser *parser = cmark_parser_new();
+ *     cmark_parser *parser = cmark_parser_new(CMARK_OPT_DEFAULT);
  *     FILE *fp = fopen("myfile.md", "r");
  *     while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
  *     	   cmark_parser_feed(parser, buffer, bytes);