RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_richtext_markdown_t Struct Reference

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

Detailed Description

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.

Field Documentation

◆ text

char* rmgui_richtext_markdown_t::text

◆ text_capacity

size_t rmgui_richtext_markdown_t::text_capacity

◆ spans

rmgui_richtext_span_t* rmgui_richtext_markdown_t::spans

◆ span_capacity

size_t rmgui_richtext_markdown_t::span_capacity

◆ paragraphs

rmgui_richtext_paragraph_t* rmgui_richtext_markdown_t::paragraphs

◆ paragraph_capacity

size_t rmgui_richtext_markdown_t::paragraph_capacity

◆ document

rmgui_richtext_document_t rmgui_richtext_markdown_t::document

The documentation for this struct was generated from the following file: