class

Hwaro::Models::MarkdownConfig

Inherits Reference / Object

Markdown parser configuration Maps to Markd::Options for controlling markdown parsing behavior

Constructors

Instance methods

admonitions
Source
admonitions=(admonitions : Bool)
Source
attributes
Source
attributes=(attributes : Bool)
Source
cache_fingerprint

Compact fingerprint of every field that changes rendered body HTML. Keys Processor::Markdown.render_body_cached's memo so entries from a previous config (e.g. after a config reload in serve) can't be served for a build running with different markdown options.

Source
containers

If true, enables :::type Title::: custom containers, rendered with the admonition markup (shared CSS). Unsupported under safe mode (the raw

wrapper would be stripped).

Source
containers=(containers : Bool)

If true, enables :::type Title::: custom containers, rendered with the admonition markup (shared CSS). Unsupported under safe mode (the raw

wrapper would be stripped).

Source
definition_lists
Source
definition_lists=(definition_lists : Bool)
Source
emoji
Source
emoji=(emoji : Bool)
Source
footnotes
Source
footnotes=(footnotes : Bool)
Source
heading_ids
Source
heading_ids=(heading_ids : Bool)
Source
ins=(ins : Bool)
Source
lazy_loading
Source
lazy_loading=(lazy_loading : Bool)
Source
mark
Source
mark=(mark : Bool)
Source
math
Source
math=(math : Bool)
Source
math_engine
Source
math_engine=(math_engine : String)
Source
math_tags

Generate CDN script tags for the math engine. The markdown processor emits \(…\)/\[…\] wrappers with class="math math-{inline,display}" but doesn't load the renderer — without these tags the math reaches the browser as literal TeX. Templates can opt out by overriding the {{ math_tags }} variable or by leaving math = false and inlining their own includes via [auto_includes].

Source
mermaid
Source
mermaid=(mermaid : Bool)
Source
mermaid_tags

Generate the Mermaid.js script tag. Mirrors math_tags: the markdown processor emits <div class="mermaid">…</div>, but without a renderer those blocks ship to the browser as DOT-like source text. Pinned to 10.x to avoid major-version drift.

Source
safe
Source
safe=(safe : Bool)
Source
smart_punctuation
Source
smart_punctuation=(smart_punctuation : Bool)
Source
sub=(sub : Bool)
Source
sup=(sup : Bool)
Source
task_list_classes

If true, task-list markup gets GFM's classes (task-list-item / task-list-item-checkbox / contains-task-list) for CSS parity.

Source
task_list_classes=(task_list_classes : Bool)

If true, task-list markup gets GFM's classes (task-list-item / task-list-item-checkbox / contains-task-list) for CSS parity.

Source
task_lists
Source
task_lists=(task_lists : Bool)
Source