Convert a markdown to reStructuredText using pandoc
Version : 1.0
File Name : markdown2rst.ps1
Author : Adewale Azeez - iamthecarisma@gmail.com
Date : April-02-2020
Convert a markdown to reStructuredText using pandoc. Download pandoc from https://pandoc.org/.
To convert all the markdown file in a folder specify the first argument as a the folder instead of a markdown file.
markdown2rst [-MdPath] <String> [-OutputFolder] <String> [-Recurse]
[-Silent] [-FilterRst] [<CommonParameters>]
The path to the markdown file or folder to convert to reStructuredText
attr |
value |
---|---|
Required? |
true |
Position? |
1 |
Default value |
|
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
the folder to put generated reStructuredText
attr |
value |
---|---|
Required? |
true |
Position? |
2 |
Default value |
|
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
generate reStructuredText in subfolders?
attr |
value |
---|---|
Required? |
false |
Position? |
named |
Default value |
False |
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
whether to print anything to the console
attr |
value |
---|---|
Required? |
false |
Position? |
named |
Default value |
False |
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
format relative link to properly locate file in documentation
attr |
value |
---|---|
Required? |
false |
Position? |
named |
Default value |
False |
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
[System.String[]]
[System.String[]]
markdown2rst file.md ./dist/
This will generates file.rst in the folder ./dist relative to the working dir.
markdown2rst ./md_doc/ ./md_rst/ -Recurse
Generate the reStructuredText files for all the markdown in the folder ./md_doc/ and it sub folders into the folder ./md_rst/.