![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Go to the source code of this file.
Macros | |
| #define | CHECK(cond, msg) |
| #define | IA N_MARKDOWN_INLINE_ALL |
Functions | |
| static void | cell_text (const n_markdown_block *b, size_t row, size_t col, char *out, size_t cap) |
| static void | flow_text (const n_markdown_inline *inl, char *out, size_t cap) |
| int | main (void) |
| static n_markdown_doc | parse (const char *s) |
| static n_markdown_doc | parse_ex (const char *s, unsigned flags) |
Variables | |
| static int | failures = 0 |
| #define CHECK | ( | cond, | |
| msg ) |
Definition at line 35 of file ex_markdown.c.
| #define IA N_MARKDOWN_INLINE_ALL |
Referenced by main().
|
static |
Definition at line 73 of file ex_markdown.c.
References flow_text(), n_markdown_block::items, n_markdown_block::n_cols, n_markdown_block::n_items, and row().
Referenced by main().
|
static |
Definition at line 58 of file ex_markdown.c.
References n_markdown_inline::n_spans, n_markdown_inline::spans, and n_markdown_span::text.
Referenced by cell_text(), and main().
| int main | ( | void | ) |
Definition at line 81 of file ex_markdown.c.
References n_markdown_block::align, n_markdown_doc::blocks, cell_text(), CHECK, failures, flow_text(), IA, n_markdown_block::inl, n_markdown_block::items, n_markdown_block::kind, n_markdown_block::level, LOG_ERR, LOG_NOTICE, n_markdown_doc::n_blocks, n_markdown_block::n_cols, n_markdown_block::n_items, n_log, N_MARKDOWN_ALIGN_CENTER, N_MARKDOWN_ALIGN_LEFT, N_MARKDOWN_ALIGN_RIGHT, N_MARKDOWN_ALL, N_MARKDOWN_BOLD, N_MARKDOWN_CODE, N_MARKDOWN_CODE_BLOCK, n_markdown_free(), n_markdown_has_markup(), n_markdown_has_markup_ex(), N_MARKDOWN_HEADING, N_MARKDOWN_HEADINGS, N_MARKDOWN_ITALIC, N_MARKDOWN_LINK, N_MARKDOWN_OL, N_MARKDOWN_PARA, n_markdown_parse(), N_MARKDOWN_QUOTE, N_MARKDOWN_STRIKE, N_MARKDOWN_TABLE, N_MARKDOWN_TABLES, N_MARKDOWN_UL, n_markdown_inline::n_spans, parse(), parse_ex(), set_log_level(), n_markdown_inline::spans, n_markdown_span::style, n_markdown_span::text, and n_markdown_span::url.
|
static |
Definition at line 44 of file ex_markdown.c.
References n_markdown_parse().
|
static |
Definition at line 51 of file ex_markdown.c.
References n_markdown_parse_ex().
Referenced by main().
|
static |
Definition at line 33 of file ex_markdown.c.