getDefaultMarkdownConfig()
ts
function getDefaultMarkdownConfig<M extends MarkdownBackend>(m: M): FullMarkdownConfiguration<M>;The defaults SvelTeX uses for the markdown slice of its configuration when the user supplies none. The returned object's shape varies with the backend: unified gets remark/rehype/retext plugin slots, marked gets extensions, markdown-it gets a bare options, and so on. Useful for callers that need to inspect or extend the defaults programmatically.
Type parameters
M extends MarkdownBackend— The Markdown backend.
Parameters
m Mbase/defaults.ts:544
The markdown backend whose defaults to fetch.
Returns
FullMarkdownConfiguration<M>A fresh, deeply-mutable copy of the defaults — mutating it does not affect subsequent calls.