New NotionRichText - fasteiner/Notion GitHub Wiki
Creates a new Notion rich text block object.
New-NotionRichText [[-Type] <String>] [[-Annotations] <Object>] [[-Text] <String>] [[-Link] <Object>]
[<CommonParameters>]
New-NotionRichText [[-Type] <String>] [[-Annotations] <Object>] [[-MarkdownText] <String>] [[-Link] <Object>]
[<CommonParameters>]
This function creates a new instance of the rich_text class. You can create an empty rich text block, provide text content, or provide text content with annotations and a link.
New-NotionRichText
Creates an empty rich text object.
New-NotionRichText -Text "Hello World"
Creates a rich text object with the specified text "Hello World".
$annotations = New-NotionRichTextAnnotation -Bold -Color "blue"
New-NotionRichText -Text "Hello World" -Annotations $annotations -Link "https://example.com"
Creates a rich text object with the specified text, annotations, and link.
The annotations (bold, italic, etc.) for the rich text block. If not specified, the properties of the parent object are used.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The link object or URL for the rich text block.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill MarkdownText Description }}
Type: String
Parameter Sets: ConvertFromMarkdown
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The text content for the rich text block.
Type: String
Parameter Sets: Text
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Type Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: Text
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.