From 3cec780b0f8cb5c7fd2456f3d2806cff73a3e564 Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Wed, 12 Jul 2023 14:59:25 +0000 Subject: [PATCH] Escape curly braces in MDX for v5 docs This needs to be fixed in source. MDX v2 allows expressions inside curly braces outside of codefences --- docs/commands/Assert-MockCalled.mdx | 18 +++++++++--------- docs/commands/Assert-VerifiableMock.mdx | 4 ++-- docs/commands/New-MockObject.mdx | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/commands/Assert-MockCalled.mdx b/docs/commands/Assert-MockCalled.mdx index 26b78e97..8ce8772c 100644 --- a/docs/commands/Assert-MockCalled.mdx +++ b/docs/commands/Assert-MockCalled.mdx @@ -42,7 +42,7 @@ Assert-MockCalled [-CommandName] [[-Times] ] [-ParameterFilter < ## DESCRIPTION -{{ Fill in the Description }} +\{\{ Fill in the Description \}\} ## EXAMPLES @@ -52,13 +52,13 @@ Assert-MockCalled [-CommandName] [[-Times] ] [-ParameterFilter < PS C:\> {{ Add example code here }} ``` -{{ Add example description here }} +\{\{ Add example description here \}\} ## PARAMETERS ### -CommandName -{{ Fill CommandName Description }} +\{\{ Fill CommandName Description \}\} ```yaml Type: String @@ -74,7 +74,7 @@ Accept wildcard characters: False ### -Times -{{ Fill Times Description }} +\{\{ Fill Times Description \}\} ```yaml Type: Int32 @@ -90,7 +90,7 @@ Accept wildcard characters: False ### -ParameterFilter -{{ Fill ParameterFilter Description }} +\{\{ Fill ParameterFilter Description \}\} ```yaml Type: ScriptBlock @@ -106,7 +106,7 @@ Accept wildcard characters: False ### -ExclusiveFilter -{{ Fill ExclusiveFilter Description }} +\{\{ Fill ExclusiveFilter Description \}\} ```yaml Type: ScriptBlock @@ -122,7 +122,7 @@ Accept wildcard characters: False ### -ModuleName -{{ Fill ModuleName Description }} +\{\{ Fill ModuleName Description \}\} ```yaml Type: String @@ -138,7 +138,7 @@ Accept wildcard characters: False ### -Scope -{{ Fill Scope Description }} +\{\{ Fill Scope Description \}\} ```yaml Type: String @@ -154,7 +154,7 @@ Accept wildcard characters: False ### -Exactly -{{ Fill Exactly Description }} +\{\{ Fill Exactly Description \}\} ```yaml Type: SwitchParameter diff --git a/docs/commands/Assert-VerifiableMock.mdx b/docs/commands/Assert-VerifiableMock.mdx index b49f9a7d..360550cc 100644 --- a/docs/commands/Assert-VerifiableMock.mdx +++ b/docs/commands/Assert-VerifiableMock.mdx @@ -31,7 +31,7 @@ Assert-VerifiableMock [] ## DESCRIPTION -{{ Fill in the Description }} +\{\{ Fill in the Description \}\} ## EXAMPLES @@ -41,7 +41,7 @@ Assert-VerifiableMock [] PS C:\> {{ Add example code here }} ``` -{{ Add example description here }} +\{\{ Add example description here \}\} ## PARAMETERS diff --git a/docs/commands/New-MockObject.mdx b/docs/commands/New-MockObject.mdx index efa3ae7e..81a19a93 100644 --- a/docs/commands/New-MockObject.mdx +++ b/docs/commands/New-MockObject.mdx @@ -123,7 +123,7 @@ Accept wildcard characters: False ### -Properties -Properties to define, specified as a hashtable, in format @{ PropertyName = value }. +Properties to define, specified as a hashtable, in format `@{ PropertyName = value }`. ```yaml Type: Hashtable @@ -139,7 +139,7 @@ Accept wildcard characters: False ### -Methods -Methods to define, specified as a hashtable, in format @{ MethodName = scriptBlock }. +Methods to define, specified as a hashtable, in format `@{ MethodName = scriptBlock }`. ScriptBlock can define param block, and it will receive arguments that were provided to the function call based on order.