summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-11 16:37:56 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-11 16:37:56 -0700
commitcc78b3e9e2c05201469356730c60f6bf3d073232 (patch)
tree4c363794b1b907fcf1cba3aa30c4f40218a146f7
parent4a3ed6a7ce035f1b0ad7c8130242d052dc5efcec (diff)
parentb4ed40eb4899afb59773ac1d3473f9603b3934a9 (diff)
Merge pull request #13 from nwellnhof/documentation-fix
Update code examples in documentation
-rw-r--r--src/cmark.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmark.h b/src/cmark.h
index e29f28a..3c68ac6 100644
--- 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);