module

Hwaro::Processor::Markdown

Constants

BODY_CACHE_MAX_BYTES = (32_i64 * 1024) * 1024

Class methods

filter_markdown_config

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.

Source
filter_markdown_config=(filter_markdown_config : Models::MarkdownConfig | Nil)

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.

Source

Instance methods

extra_value(*args, **options)
Source
extra_value(*args, **options, &)
Source
parse(*args, **options)
Source
parse(*args, **options, &)
Source
render(*args, **options)
Source
render(*args, **options, &)
Source
render_body_cached(content : String, safe : Bool = false, emoji : Bool = false, lazy_loading : Bool = false, markdown_config : Models::MarkdownConfig | Nil = nil, hooks : Content::Processors::RenderHooks::HookRenderContext | Nil = nil, hooks_key : String | Nil = nil) : String

@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.

Source
render_with_anchors(*args, **options)
Source
render_with_anchors(*args, **options, &)
Source
typo_suggestion(*args, **options)
Source
typo_suggestion(*args, **options, &)
Source