Skip to main content

DocEmphasisSpan

Summary

Represents a span of text that is styled with CommonMark emphasis (italics), strong emphasis (boldface), or both.

Signature

export declare class DocEmphasisSpan extends DocNodeContainer 

Constructors

constructor

Constructs a new instance of the class

Properties

bold

Modifiers: readonly Type:readonly bold: boolean; Default: “

italic

Modifiers: readonly Type:readonly italic: boolean; Default: “

kind

Modifiers: readonly Type:get kind(): string; Default: “

Methods

No methods defined.

Events

No events defined.

Remarks

This node can contain PlainText and SoftBreak nodes. The text content is rendered with markdown emphasis markers: *italic* for italic, **bold** for bold, or ***bold italic*** for both.

Examples

Example 1