Options =
object
Defined in: packages/remark-callout/src/plugin.ts:8
optionalbody:NodeOptions| (callout) =>NodeOptions
Defined in: packages/remark-callout/src/plugin.ts:108
The body node of the callout.
optionalcallouts:string[] |null
Defined in: packages/remark-callout/src/plugin.ts:181
A list of callout types that are supported.
undefined, all callout types are supported. This means that this plugin will not check if the given callout type is in callouts and never call onUnknownCallout.callouts, this plugin will call onUnknownCallout.
optionalfoldIcon:NodeOptionsWithChildren|string| (callout) =>NodeOptionsWithChildren|string|undefined
Defined in: packages/remark-callout/src/plugin.ts:168
The fold icon node of the callout.
The fold icon node is added in the title node after the title text.
undefined, no fold icon is added.string, the string is added as HTML in the title node after the title text.object, the object is added as a node after the title text.
optionalicon:NodeOptionsWithChildren|string| (callout) =>NodeOptionsWithChildren|string|undefined
Defined in: packages/remark-callout/src/plugin.ts:137
The icon node of the callout.
The icon node is added in the title node before the title text.
undefined, no icon is added.string, the string is added as HTML in the title node before the title text.object, the object is added as a node before the title text.
optionalonUnknownCallout: (callout,file) =>Callout|undefined
Defined in: packages/remark-callout/src/plugin.ts:189
A function that is called when the given callout type is not in callouts.
undefined, the callout is ignored. This means that the callout is rendered as a normal blockquote.Callout, the callout is replaced with the returned Callout.| Parameter | Type |
|---|---|
callout | Callout |
file | VFile |
Callout | undefined
optionalroot:NodeOptions| (callout) =>NodeOptions
Defined in: packages/remark-callout/src/plugin.ts:22
The root node of the callout.
optionaltitle:NodeOptions| (callout) =>NodeOptions
Defined in: packages/remark-callout/src/plugin.ts:35
The title node of the callout.
optionaltitleInner:NodeOptions| (callout,options) =>NodeOptions|undefined
Defined in: packages/remark-callout/src/plugin.ts:89
The inner title node of the callout.
This node is used to wrap the text content of the title.
If undefined, title text is not wrapped.
Example output:
If a object, the object used as a node to wrap the title text.
Example output with options { tagName: "div", properties: { dataCalloutTitleInner: true } }: