API / @aionbuilders/nabu

createDialogueExtension

Function Stability: stable

Dialogue extension factory.

Signature

TypeScript
import { createDialogueExtension } from '@aionbuilders/nabu';
TypeScript
function createDialogueExtension(options?: object): Extension

Parameters

Parameters of createDialogueExtension
ParameterTypeDefaultDescription
optionsoptionalobject{}

dash (default –, EN dash): the marker DISPLAYED in front of a dialogue line (CSS custom property --nb-dialogue-dash, which a host can also override in CSS). Display only: the markdown syntax of a dialogue line is always -- text, whatever the dash.

options.dashoptionalstring'–'n/a

Returns

Extension

Source: src/lib/blocks/dialogue/index.js:18