|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
Tiny deterministic Markdown (not CommonMark): bold, italic, mono, [text](target), #..###### headings, '- '/'* ' bullets. More...
#include <richtext.h>
Data Fields | |
| char * | text |
| size_t | text_capacity |
| rmgui_richtext_span_t * | spans |
| size_t | span_capacity |
| rmgui_richtext_paragraph_t * | paragraphs |
| size_t | paragraph_capacity |
| rmgui_richtext_document_t | document |
Tiny deterministic Markdown (not CommonMark): bold, italic, mono, [text](target), #..###### headings, '- '/'* ' bullets.
Backslash escapes one UTF-8 codepoint; unmatched delimiters are literal. Delimiter contents must be nonempty and may not begin/end with space/tab. Inline forms do not nest or cross newlines. Link IDs are one-based encounter order, targets borrow source bytes. Headings use base_px + (7-level)*2. All input/output buffers must be disjoint. Preflight before writing makes capacity/invalid UTF-8/size failures transactional. No hidden size limits.
| char* rmgui_richtext_markdown_t::text |
| size_t rmgui_richtext_markdown_t::text_capacity |
| rmgui_richtext_span_t* rmgui_richtext_markdown_t::spans |
| size_t rmgui_richtext_markdown_t::span_capacity |
| rmgui_richtext_paragraph_t* rmgui_richtext_markdown_t::paragraphs |
| size_t rmgui_richtext_markdown_t::paragraph_capacity |
| rmgui_richtext_document_t rmgui_richtext_markdown_t::document |