Cmdlet
Save-OfficeMarkdown
Saves a live Markdown document using its native save policy and keeps it available.
Syntax
Save-OfficeMarkdown
[-AllowLoss]
-Document <MarkdownDocument>
[-ImageRenderingMode <RichMarkdown| PortableMarkdown| Html| HtmlWhenSized>]
[-LineEnding <LF| CRLF| CR>]
[-PassThru]
[[-Path] <String>]
[-UnorderedListMarker <-| *| +>]
[-WriteOptions <MarkdownSaveOptions>]
[-WriteProfile <OfficeIMO| Portable| HtmlImage>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
DocumentExamples
Save to the document's associated path.
$document | Save-OfficeMarkdown -PassThruWrite a CRLF copy.
Save-OfficeMarkdown -Document $document -Path ./Publish/Report.md -LineEnding CRLF -PassThruParameters
- -AllowLoss SwitchParameter
- Accept explicit native-save omissions, overriding WriteOptions when supplied.
- -Document MarkdownDocument
- Markdown document to save.
- -ImageRenderingMode MarkdownImageRenderingMode
- Controls Markdown image serialization.
- Possible values:
RichMarkdown,PortableMarkdown,Html,HtmlWhenSized - -LineEnding OfficeLineEnding
- Output line endings.
- Possible values:
LF,CRLF,CR - -PassThru SwitchParameter
- Return the saved file.
- -Path String
- Optional destination; omission saves to the associated path.
- -UnorderedListMarker String
- Unordered list marker.
- Possible values:
-,*,+ - -WriteOptions MarkdownSaveOptions
- Native save settings, or a hashtable of native option properties.
- -WriteProfile OfficeMarkdownWriteProfile
- Friendly Markdown writer profile.
- Possible values:
OfficeIMO,Portable,HtmlImage - -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- Prompts for confirmation before running the command.
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.