Skip to content

Commit

Permalink
Merge pull request #161 from alt3/improvements [release]
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
bravo-kernel authored Apr 16, 2023
2 parents 0cefb98 + 8856383 commit 354e4f3
Show file tree
Hide file tree
Showing 8 changed files with 210 additions and 199 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:

- uses: PoshCode/Actions/pester@v1
with:
pesterVersion: 5.4.0
pesterVersion: 5.4.1
codeCoveragePath: Modules/${{env.MODULE_NAME}}
moduleUnderTest: ${{env.MODULE_NAME}}
additionalModulePaths: ${{github.workspace}}/Modules
Expand Down
2 changes: 1 addition & 1 deletion Dev/RequiredModules.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
ModuleBuilder = "2.*"
Pester = "5.4.0" # pinned until poshcode GA handles wildcards
Pester = "5.4.1" # pinned until poshcode GA handles wildcards
PSScriptAnalyzer = "1.*"
PlatyPS = "0.*"
}
2 changes: 1 addition & 1 deletion Source/Private/InsertUserMarkdown.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function InsertUserMarkdown() {
$content = ReadFile -MarkdownFile $MarkdownFile -Raw

# use file content as markdown
if (Test-Path $Markdown -ErrorAction SilentlyContinue) {
if ( $(try { Test-Path $Markdown.Trim() } catch { $false }) ) {
$Markdown = Get-Content -Path $Markdown -Raw
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Private/UnescapeInlineCode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function UnescapeInlineCode() {
file content. This means we have no way to support `\>` inside inline code.
.LINK
https://regex101.com/r/kBl7v8/1
https://regex101.com/r/80DpiH/1
#>
param(
[Parameter(Mandatory = $True)][System.IO.FileSystemInfo]$MarkdownFile
Expand Down
5 changes: 5 additions & 0 deletions Tests/Integration/UnescapeInlineCode/Expected.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ With leading text `<inlinecode1>` and `<inlinecode2>` with trailing text

`<inlinecode1>` `<inlinecode2>` `<inlinecode3>` `<inlinecode4>`

`<inlinecode1><inlinecode2>`
`<inlinecode1> <inlinecode2> trailing`
`leading <inlinecode1> <inlinecode2>`
`boxed <inlinecode1> <inlinecode2> boxed`

## PARAMETERS

### -Dummy
Expand Down
5 changes: 5 additions & 0 deletions Tests/Integration/UnescapeInlineCode/UnescapeInlineCode.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ function Test-UnescapeInlineCode {
With leading text `<inlinecode1>` and `<inlinecode2>` with trailing text
`<inlinecode1>` `<inlinecode2>` `<inlinecode3>` `<inlinecode4>`
`<inlinecode1><inlinecode2>`
`<inlinecode1> <inlinecode2> trailing`
`leading <inlinecode1> <inlinecode2>`
`boxed <inlinecode1> <inlinecode2> boxed`
#>
[CmdletBinding()]
param(
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^2.3.0",
"@docusaurus/preset-classic": "^2.3.0",
"@docusaurus/core": "^2.4.0",
"@docusaurus/preset-classic": "^2.4.0",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"classnames": "^2.2.6",
Expand Down
Loading

1 comment on commit 354e4f3

@vercel
Copy link

@vercel vercel bot commented on 354e4f3 Apr 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docusaurus-powershell – ./

docusaurus-powershell-alt3.vercel.app
docusaurus-powershell.vercel.app
docusaurus-powershell-git-main-alt3.vercel.app

Please sign in to comment.