summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-14 13:49:53 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-14 14:03:57 -0800
commit37554bbb7901b7116e1a5006f331968444141b76 (patch)
tree9307d76a0c83f2e36158269d15f72fd565dd7c56 /man
parent1014764a109e7f8f47d466080962f5f344287277 (diff)
Use as.literal instead of string_content for HTML and code blocks.
This is for consistency with the other types of nodes that have literal strings as contents.
Diffstat (limited to 'man')
-rw-r--r--man/man3/cmark.323
1 files changed, 0 insertions, 23 deletions
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3
index 0a281ed..cdfcfa5 100644
--- a/man/man3/cmark.3
+++ b/man/man3/cmark.3
@@ -102,18 +102,6 @@ way, for example, turning all level\-3 headers into regular paragraphs.
.IP
.nf
\f[C]
-void
-usage_example(cmark_node *root) {
- cmark_event_type ev_type;
- cmark_iter *iter = cmark_iter_new(root);
-
- while ((ev_type = cmark_iter_next(iter)) != CMARK_EVENT_DONE) {
- cmark_node *cur = cmark_iter_get_node(iter);
- // Do something with `cur` and `ev_type`
- }
-
- cmark_iter_free(iter);
-}
\f[]
.fi
@@ -314,7 +302,6 @@ Simple interface:
.IP
.nf
\f[C]
-cmark_node *document = cmark_parse_document("Hello *world*", 12);
\f[]
.fi
.PP
@@ -322,16 +309,6 @@ Streaming interface:
.IP
.nf
\f[C]
-cmark_parser *parser = cmark_parser_new();
-FILE *fp = fopen("myfile.md", "r");
-while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
- cmark_parser_feed(parser, buffer, bytes);
- if (bytes < sizeof(buffer)) {
- break;
- }
-}
-document = cmark_parser_finish(parser);
-cmark_parser_free(parser);
\f[]
.fi