external help file | Module Name | online version | schema |
---|---|---|---|
HtmlToMarkdown.dll-Help.xml |
HtmlToMarkdown |
2.0.0 |
Converts HTML to Markdown.
Convert-HtmlToMarkdown -Html <String> [-DefaultCodeBlockLanguage <String>] [-GithubFlavored]
[-ListBulletChar <Char>] [-RemoveComments] [-SmartHrefHandling] [-UnknownTags <UnknownTagsOption>]
[-PassThroughTags <String[]>] [-WhitelistUriSchemes <String[]>]
[-TableWithoutHeaderRowHandling <TableWithoutHeaderRowHandlingOption>] [<CommonParameters>]
{{ Fill in the Description }}
'<h1>On Board</h1><ul><li>Ford<li>Zaphod<li>Marvin</ul>' |Convert-HtmlToMarkdown
# On Board
- Ford
- Zaphod
- Marvin
Invoke-RestMethod https://google.com/ |Convert-HtmlToCommonMark -UnknownTags Bypass
1. [Search](https://www.google.com/webhp?tab=ww)
2. [Images](https://www.google.com/imghp?hl=en&tab=wi)
3. [Maps](https://maps.google.com/maps?hl=en&tab=wl)
...
Option to set the default code block language for Github style markdown if class based language markers are not available.
Type: String
Parameter Sets: (All)
Aliases: CodeDefault
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Github style markdown for br, pre and table.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: GFM
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
HTML to convert.
Type: String
Parameter Sets: (All)
Aliases: InputObject, OuterHtml
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Sets the bullet character to use for unordered lists.
Type: Char
Parameter Sets: (All)
Aliases: Bullets
Required: False
Position: Named
Default value: '-'
Accept pipeline input: False
Accept wildcard characters: False
Pass a list of tags to pass through as-is without any processing.
Type: String[]
Parameter Sets: (All)
Aliases: PassThroughElements, KeepTags, KeepElements
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Remove comment tags with text.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: StripComments
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Outputs link as auto-linking text (not an explicit link) when the text matches the link.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: AutoLink
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
What to do about tables without a header row. Default: first row will be used as header row. EmptyRow: an empty header row is created.
Type: TableWithoutHeaderRowHandlingOption
Parameter Sets: (All)
Aliases: TableHeaderDefault
Accepted values: Default, EmptyRow
Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
What to do with unknown tags: PassThrough includes it as is, Drop removes it, Bypass ignores it, and Raise throws an exception.
Type: UnknownTagsOption
Parameter Sets: (All)
Aliases: UnknownElements
Accepted values: PassThrough, Drop, Bypass, Raise
Required: False
Position: Named
Default value: PassThrough
Accept pipeline input: False
Accept wildcard characters: False
Specify which schemes (without trailing colon) are to be allowed for links and images. Empty string allows unknown schemes.
Type: String[]
Parameter Sets: (All)
Aliases: AllowlistUriSchemes
Required: False
Position: Named
Default value: None
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.