API / @aionbuilders/nabu

TypographyExtension

Constant Stability: stable

Smart typography input rules. Currently: -- → — (em-dash substitution while typing). A longer run of dashes (--- , a divider-like -----) is left alone: the -- must not be preceded by another -.

Declaration

TypeScript
import { TypographyExtension } from '@aionbuilders/nabu';
TypeScript
const TypographyExtension: Extension

Source: src/lib/behaviors/text/typography.extension.js:9