Skip to content

FormatCodeBlockParams

The parameters of formatCodeBlock.

Import:

import type { FormatCodeBlockParams } from '@mnaoumov/obsidian-lib/modals/code-block-builder';

Signature:

export interface FormatCodeBlockParams

Properties

PropertyTypeDescription
fieldsreadonly CodeBlockBuilderInput[]The fields of the code block.
languagestringThe language of the code block.
valuesReadonlyMap<string, CodeBlockBuilderValue>The value of each field, by its key. A field missing from it holds its default value.

Links to this page: