Skip to content

Commit 60bc1ca

Browse files
Added cmdlets to export/import settings
1 parent 4cac246 commit 60bc1ca

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

2-Draft-Accepted/RFCNNNN-Native-Markdown-Rendering.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ RFC:
33
Author: Aditya Patwardhan
44
Status: Draft
55
SupercededBy:
6-
Version: 0.2
6+
Version: 0.3
77
Area: Formatting and Output
88
Comments Due: 03/26/2018
99
Plan to implement: Yes
1010
---
1111

1212
# Native Markdown Rendering
1313

14-
Render markdown content on console to improve readability.
14+
Render markdown content on console to improve readability.
1515

1616
## Motivation
1717

@@ -56,15 +56,11 @@ There will be support for changing the colors for various elements using the `Se
5656

5757
```PowerShell
5858
59-
Set-MarkdownOption [-Header1Color <ConsoleColor>] [-Header2Color <ConsoleColor>] [-Header3Color <ConsoleColor>] [-Header4Color <ConsoleColor>] [-Header5Color <ConsoleColor>] [-Header6Color <ConsoleColor>] [-CodeBlockForegroundColor <ConsoleColor>] [-CodeBlockBackgroudColor <ConsoleColor>] [-ImageAltTextForegroundColor <ConsoleColor>] [-LinkForegroundColor <ConsoleColor>] [-ItalicsForegroundColor <ConsoleColor>] [<CommonParameters>]
59+
Set-MarkdownOption [-Header1Color <ConsoleColor>] [-Header2Color <ConsoleColor>] [-Header3Color <ConsoleColor>] [-Header4Color <ConsoleColor>] [-Header5Color <ConsoleColor>] [-Header6Color <ConsoleColor>] [-CodeBlockForegroundColor <ConsoleColor>] [-CodeBlockBackgroundColor <ConsoleColor>] [-ImageAltTextForegroundColor <ConsoleColor>] [-LinkForegroundColor <ConsoleColor>] [-ItalicsForegroundColor <ConsoleColor>] [<CommonParameters>]
6060
61-
Set-MarkdownOption [-Theme <MarkdownThemeType>] [<CommonParameters>]
61+
Set-MarkdownOption -Theme <string> [<CommonParameters>]
6262
63-
enum MarkdownThemeType
64-
{
65-
Dark
66-
Light
67-
}
63+
Set-MarkdownOption -InputObject <psobject> [<CommonParameters>]
6864
6965
```
7066

@@ -80,6 +76,31 @@ Get-MarkdownOption [<CommonParameters>]
8076
8177
```
8278

79+
### Specification for `Export-MarkdownOption`
80+
81+
```PowerShell
82+
83+
Export-MarkdownOption -Path <string> [<CommonParameters>]
84+
85+
Export-MarkdownOption -LiteralPath <string> [<CommonParameters>]
86+
87+
```
88+
89+
Export the current markdown settings to a file.
90+
91+
### Specification for `Import-MarkdownOption`
92+
93+
```PowerShell
94+
95+
Import-MarkdownOption -Path <string> [<CommonParameters>]
96+
97+
Import-MarkdownOption -LiteralPath <string> [<CommonParameters>]
98+
99+
```
100+
101+
Import the markdown settings from the specified file and returns a PSObject of the options.
102+
This can be used as an `InputObject` for `Set-MarkdownOption`.
103+
83104
## Supported Markdown Elements
84105

85106
We will be supporting a limited set of markdown elements in the initial version.

0 commit comments

Comments
 (0)