Skip to content

Commit 088f95b

Browse files
committed
Rename ConvertFrom-Markdown
PowerShellCore 6 added a `ConvertFrom-Markdown` command, and this module's command therefore causes a conflict. Renaming to `ConvertFrom-GitHubMarkdown` in an effort to best identify this as being a "GitHub" method that converts Markdown, although it unfortunately does imply that it might only support "GitHub Flavored Markdown", where in fact it supports both that as well as standard. Resolves #99 - Rename ConvertFrom-Markdown
1 parent 68fa5a5 commit 088f95b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

GitHubMiscellaneous.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function Get-GitHubRateLimit
7373
return Invoke-GHRestMethod @params
7474
}
7575

76-
function ConvertFrom-Markdown
76+
function ConvertFrom-GitHubMarkdown
7777
{
7878
<#
7979
.SYNOPSIS
@@ -113,7 +113,7 @@ function ConvertFrom-Markdown
113113
[String] The HTML version of the Markdown content.
114114
115115
.EXAMPLE
116-
ConvertFrom-Markdown -Content '**Bolded Text**' -Mode Markdown
116+
ConvertFrom-GitHubMarkdown -Content '**Bolded Text**' -Mode Markdown
117117
118118
Returns back '<p><strong>Bolded Text</strong></p>'
119119
#>

PowerShellForGitHub.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
'Add-GitHubIssueLabel',
4949
'Backup-GitHubConfiguration',
5050
'Clear-GitHubAuthentication',
51-
'ConvertFrom-Markdown',
51+
'ConvertFrom-GitHubMarkdown',
5252
'Get-GitHubAssignee',
5353
'Get-GitHubCloneTraffic',
5454
'Get-GitHubCodeOfConduct',

0 commit comments

Comments
 (0)