Cmdlet
Add-OfficeMarkdownImage
Adds a Markdown image.
Syntax
Add-OfficeMarkdownImage
[-Alt <String>]
[-Height <Double>]
[-PassThru]
[-Path] <String>
[-Title <String>]
[-Width <Double>]
[<CommonParameters>]#Parameter set:
ContextAdd-OfficeMarkdownImage
[-Alt <String>]
-Document <MarkdownDoc>
[-Height <Double>]
[-PassThru]
[-Path] <String>
[-Title <String>]
[-Width <Double>]
[<CommonParameters>]#Parameter set:
DocumentExamples
Add a report image with alt text and sizing.
New-OfficeMarkdown -Path .\Report.md {
Add-OfficeMarkdownHeading -Level 2 -Text 'Architecture'
Add-OfficeMarkdownImage -Path '.\Assets\architecture.png' -Alt 'Architecture diagram' -Title 'Current architecture' -Width 640
}Appends an image block with accessibility text and optional presentation metadata.
Parameters
- -Alt String
- Alt text for the image.
- -Height Double
- Optional height in pixels.
- -PassThru SwitchParameter
- Emit the Markdown document after appending the image.
- -Path String
- Image path or URL.
- -Title String
- Optional title for the image.
- -Width Double
- Optional width in pixels.
- -Document MarkdownDoc
- Markdown document to update outside the DSL context.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.