CreateInlineTokenWidgetsExtensionParams
Parameters for createInlineTokenWidgetsExtension.
Import:
import type { CreateInlineTokenWidgetsExtensionParams } from '@mnaoumov/obsidian-lib/codemirror/inline-token-widgets';Signature:
export interface CreateInlineTokenWidgetsExtensionParamsProperties
| Property | Type | Description |
|---|---|---|
| regExp | RegExp | The regular expression a token matches. The g flag is added when missing. |
| render | InlineTokenRenderFunction | Renders a token into the widget's element. |
| shouldDecorate? | (params: InlineTokenShouldDecorateParams) => boolean | Decides whether a match becomes a widget, such as to skip a match inside code. Every match does by default. |
| shouldRevealOnSelection? | boolean | Whether a token shows its source while a selection, the cursor included, touches it. |
Links to this page: