Hwaro::Processor::Markdown
Constants
Class methods
The site's [markdown] config, published for template filters
(currently markdownify) that have no per-call config access.
Set once per build in Phases::Initialize — mirroring
SyntaxHighlighter.server_mode — so serve config reloads
propagate; nil in library/spec contexts keeps the bare defaults.
The site's [markdown] config, published for template filters
(currently markdownify) that have no per-call config access.
Set once per build in Phases::Initialize — mirroring
SyntaxHighlighter.server_mode — so serve config reloads
propagate; nil in library/spec contexts keeps the bare defaults.
Instance methods
Renders Markdown to HTML and generates a Table of Contents @param highlight - whether to enable syntax highlighting for code blocks @param safe - if true, raw HTML will not be passed through (replaced by comments) @param lazy_loading - if true, adds loading="lazy" to img tags @param emoji - if true, converts emoji shortcodes to emoji characters @param hooks - render-hook context; nil (the default) renders exactly as before this parameter existed.
@param hooks - render-hook context for feed/search fallback rendering
(see RenderHooks.fallback_context); nil when no registry is
configured, in which case the memo key and render call are
unaffected by this parameter.
@param hooks_key - identifies the page for the hook page/config
vars ("#{page.url}:#{page.language}"); only consulted when
hooks is present, since the vars aren't otherwise part of the
cache key.
Renders with anchor links injected into headings (delegates to shared instance)