Skip to documentation
SLOP

tiny.zen.MarkdownOptions

Reference tiny.zen MarkdownOptions

Defined in markdown.

Bounds Markdown features and optionally captures a source-local diagnostic.

API (13)

Fields and members

Public fields and members.

No direct callersNo direct callsmarkdownOptions
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/zen/src/markdown.zig:140

zig
/// Bounds Markdown features and optionally captures a source-local diagnostic.pub const Options = struct {    /// Chooses document or slide rendering.    mode: Mode = .document,    /// Emits heading IDs when true; IDs are still inspected when false.    heading_anchors: bool = true,    /// Renders `zen-diagram` fences when true and leaves them as code when false.    ascii_diagrams: bool = true,    /// Keeps one exact call-map stylesheet per rendered page when true.    one_call_map_style_per_page: bool = false,    /// Requested ASCII width, clamped to 24...200 columns.    diagram_width: usize = 72,    /// Requested ASCII height, clamped to 8...80 rows.    diagram_height: usize = 22,    /// Controls syntax-highlighted code blocks.    code_blocks: code.Options = .{},    /// Rejects Markdown whose measured heading demand exceeds these limits.    heading_limits: document.Limits = document.default_limits,    /// Rejects Markdown whose measured footnote demand exceeds these limits.    footnote_limits: footnote.Limits = footnote.default_limits,    /// Rejects one quiz fence whose measured demand exceeds these limits.    quiz_limits: quiz.Limits = quiz.default_limits,    /// Controls slide layout when `mode` is `slides`.    slides: slides.Options = .{},    /// Receives source-local repair detail after a supported parse failure.    diagnostic: ?*diagnostic.Diagnostic = null,    /// Receives one record per rendered link and image when set.    link_report: ?*LinkReport = null,};

Source: lib/zen/src/root.zig:202

zig
pub const MarkdownOptions = markdown.Options;

Audit

Definitions1
Public names2
Members13
Version26.7.0
Revisiondaab053ee433