CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::ui::StyledLine Struct Reference

One rendered logical line produced by the Markdown parser. More...

#include <MarkdownModel.h>

Public Attributes

const char * text = nullptr
 Span into source (not null-terminated).
uint16_t len = 0
 Span length in bytes.
MdLineKind kind = MdLineKind::Paragraph
uint8_t font = mdfont::Builtin
 One of mdfont.
uint8_t indent = 0
 Nesting depth (view multiplies by columns).
bool inverted = false
 Inverse background (code).

Detailed Description

One rendered logical line produced by the Markdown parser.

text is a non-owning span into the parsed source, so the source MUST outlive the model. Inline emphasis/links inside text are applied by the view at draw time; block-level markers are already stripped here.

Definition at line 43 of file MarkdownModel.h.

Member Data Documentation

◆ font

uint8_t cdc::ui::StyledLine::font = mdfont::Builtin

One of mdfont.

Definition at line 47 of file MarkdownModel.h.

Referenced by cdc::ui::MarkdownView::appendParsed(), and cdc::ui::parseMarkdown().

◆ indent

uint8_t cdc::ui::StyledLine::indent = 0

Nesting depth (view multiplies by columns).

Definition at line 48 of file MarkdownModel.h.

Referenced by cdc::ui::MarkdownView::appendParsed(), and cdc::ui::parseMarkdown().

◆ inverted

bool cdc::ui::StyledLine::inverted = false

Inverse background (code).

Definition at line 49 of file MarkdownModel.h.

Referenced by cdc::ui::MarkdownView::appendParsed(), and cdc::ui::parseMarkdown().

◆ kind

MdLineKind cdc::ui::StyledLine::kind = MdLineKind::Paragraph

Definition at line 46 of file MarkdownModel.h.

Referenced by cdc::ui::MarkdownView::appendParsed(), and cdc::ui::parseMarkdown().

◆ len

uint16_t cdc::ui::StyledLine::len = 0

Span length in bytes.

Definition at line 45 of file MarkdownModel.h.

Referenced by cdc::ui::MarkdownView::appendParsed(), and cdc::ui::parseMarkdown().

◆ text

const char* cdc::ui::StyledLine::text = nullptr

Span into source (not null-terminated).

Definition at line 44 of file MarkdownModel.h.

Referenced by cdc::ui::MarkdownView::appendParsed(), and cdc::ui::parseMarkdown().


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