Cmdlet
Open-OfficeMarkdown
Opens native Markdown from a file or parses text; a file content block saves atomically.
Syntax
Open-OfficeMarkdown
[-AllowLoss]
[[-Content] <ScriptBlock>]
[-Options <Object[]>]
[-PassThru]
[-Path] <String>
[-Show]
[-WriteOptions <MarkdownSaveOptions>]
[<CommonParameters>]#Parameter set:
PathOpen-OfficeMarkdown
[-AllowLoss]
[[-Content] <ScriptBlock>]
-LiteralPath <String>
[-Options <Object[]>]
[-PassThru]
[-Show]
[-WriteOptions <MarkdownSaveOptions>]
[<CommonParameters>]#Parameter set:
LiteralPathOpen-OfficeMarkdown
[-AllowLoss]
[[-Content] <ScriptBlock>]
[-Options <Object[]>]
[-PassThru]
[-Show]
-Text <String>
[<CommonParameters>]#Parameter set:
TextExamples
Open a literal path from a file pipeline.
$document = Get-Item -LiteralPath './Review[final].md' | Open-OfficeMarkdownParse text with bounded reader options.
Open-OfficeMarkdown -Text '# Report' -Options (New-OfficeMarkdownReaderOptions -MaxInputCharacters 500000)Parameters
- -AllowLoss SwitchParameter
- Gets or sets whether native-save loss is explicitly accepted.
- -Content ScriptBlock
- Gets or sets a content block; omission returns the live document.
- -Options Object[]
- Native reader options followed by optional native-property hashtable overrides.
- -PassThru SwitchParameter
- Gets or sets whether a completed content block returns the saved FileInfo.
- -Path String
- Markdown source with FileSystem wildcard expansion.
- -Show SwitchParameter
- Gets or sets whether the saved file opens in the system default application.
- -WriteOptions MarkdownSaveOptions
- Native settings used when saving a file content block.
- -LiteralPath String
- Literal source path, including FileInfo.FullName and provider PSPath.
- -Text String
- Markdown to parse without a file or authoring block.
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.