From 09a4b81a6ed04baaf1f890a2e8665c01f9494ab6 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Tue, 15 Apr 2025 11:35:54 +0200 Subject: [PATCH] Update tests --- .../Specs/MathSpecs.generated.cs | 90 +++++++++---------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/src/Markdig.Tests/Specs/MathSpecs.generated.cs b/src/Markdig.Tests/Specs/MathSpecs.generated.cs index ee0a291c..0077dab1 100644 --- a/src/Markdig.Tests/Specs/MathSpecs.generated.cs +++ b/src/Markdig.Tests/Specs/MathSpecs.generated.cs @@ -17,7 +17,7 @@ namespace Markdig.Tests.Specs.Math // // ## Math Inline // - // Allows to define a mathematic block embraced by `$...$` + // Allows to define a mathematic inline block embraced by `$...$` [Test] public void ExtensionsMathInline_Example001() { @@ -25,12 +25,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a $math block$ + // This is a $math inline$ // // Should be rendered as: - //

This is a \(math block\)

+ //

This is a \(math inline\)

- TestParser.TestSpec("This is a $math block$", "

This is a \\(math block\\)

", "mathematics|advanced", context: "Example 1\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a $math inline$", "

This is a \\(math inline\\)

", "mathematics|advanced", context: "Example 1\nSection Extensions / Math Inline\n"); } // Or by `$$...$$` embracing it by: @@ -41,12 +41,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a $$math block$$ + // This is a $$math inline$$ // // Should be rendered as: - //

This is a \(math block\)

+ //

This is a \(math inline\)

- TestParser.TestSpec("This is a $$math block$$", "

This is a \\(math block\\)

", "mathematics|advanced", context: "Example 2\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a $$math inline$$", "

This is a \\(math inline\\)

", "mathematics|advanced", context: "Example 2\nSection Extensions / Math Inline\n"); } // Newlines inside an inline math are not allowed: @@ -58,13 +58,13 @@ namespace Markdig.Tests.Specs.Math // // The following Markdown: // This is not a $$math - // block$$ and? this is a $$math block$$ + // inline$$ and? this is a $$math inline$$ // // Should be rendered as: //

This is not a $$math - // block$$ and? this is a \(math block\)

+ // inline$$ and? this is a \(math inline\)

- TestParser.TestSpec("This is not a $$math \nblock$$ and? this is a $$math block$$", "

This is not a $$math\nblock$$ and? this is a \\(math block\\)

", "mathematics|advanced", context: "Example 3\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is not a $$math \ninline$$ and? this is a $$math inline$$", "

This is not a $$math\ninline$$ and? this is a \\(math inline\\)

", "mathematics|advanced", context: "Example 3\nSection Extensions / Math Inline\n"); } [Test] @@ -75,13 +75,13 @@ namespace Markdig.Tests.Specs.Math // // The following Markdown: // This is not a $math - // block$ and? this is a $math block$ + // inline$ and? this is a $math inline$ // // Should be rendered as: //

This is not a $math - // block$ and? this is a \(math block\)

+ // inline$ and? this is a \(math inline\)

- TestParser.TestSpec("This is not a $math \nblock$ and? this is a $math block$", "

This is not a $math\nblock$ and? this is a \\(math block\\)

", "mathematics|advanced", context: "Example 4\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is not a $math \ninline$ and? this is a $math inline$", "

This is not a $math\ninline$ and? this is a \\(math inline\\)

", "mathematics|advanced", context: "Example 4\nSection Extensions / Math Inline\n"); } // An opening `$` can be followed by a space if the closing is also preceded by a space `$`: @@ -92,12 +92,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a $ math block $ + // This is a $ math inline $ // // Should be rendered as: - //

This is a \(math block\)

+ //

This is a \(math inline\)

- TestParser.TestSpec("This is a $ math block $", "

This is a \\(math block\\)

", "mathematics|advanced", context: "Example 5\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a $ math inline $", "

This is a \\(math inline\\)

", "mathematics|advanced", context: "Example 5\nSection Extensions / Math Inline\n"); } [Test] @@ -107,12 +107,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a $ math block $ after + // This is a $ math inline $ after // // Should be rendered as: - //

This is a \(math block\) after

+ //

This is a \(math inline\) after

- TestParser.TestSpec("This is a $ math block $ after", "

This is a \\(math block\\) after

", "mathematics|advanced", context: "Example 6\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a $ math inline $ after", "

This is a \\(math inline\\) after

", "mathematics|advanced", context: "Example 6\nSection Extensions / Math Inline\n"); } [Test] @@ -122,12 +122,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a $$ math block $$ after + // This is a $$ math inline $$ after // // Should be rendered as: - //

This is a \(math block\) after

+ //

This is a \(math inline\) after

- TestParser.TestSpec("This is a $$ math block $$ after", "

This is a \\(math block\\) after

", "mathematics|advanced", context: "Example 7\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a $$ math inline $$ after", "

This is a \\(math inline\\) after

", "mathematics|advanced", context: "Example 7\nSection Extensions / Math Inline\n"); } [Test] @@ -137,12 +137,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a not $ math block$ because there is not a whitespace before the closing + // This is a not $ math inline$ because there is not a whitespace before the closing // // Should be rendered as: - //

This is a not $ math block$ because there is not a whitespace before the closing

+ //

This is a not $ math inline$ because there is not a whitespace before the closing

- TestParser.TestSpec("This is a not $ math block$ because there is not a whitespace before the closing", "

This is a not $ math block$ because there is not a whitespace before the closing

", "mathematics|advanced", context: "Example 8\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a not $ math inline$ because there is not a whitespace before the closing", "

This is a not $ math inline$ because there is not a whitespace before the closing

", "mathematics|advanced", context: "Example 8\nSection Extensions / Math Inline\n"); } // For the opening `$` it requires a space or a punctuation before (but cannot be used within a word): @@ -153,12 +153,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is not a m$ath block$ + // This is not a m$ath inline$ // // Should be rendered as: - //

This is not a m$ath block$

+ //

This is not a m$ath inline$

- TestParser.TestSpec("This is not a m$ath block$", "

This is not a m$ath block$

", "mathematics|advanced", context: "Example 9\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is not a m$ath inline$", "

This is not a m$ath inline$

", "mathematics|advanced", context: "Example 9\nSection Extensions / Math Inline\n"); } // For the closing `$` it requires a space after or a punctuation (but cannot be preceded by a space and cannot be used within a word): @@ -169,12 +169,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is not a $math bloc$k + // This is not a $math inlin$e // // Should be rendered as: - //

This is not a $math bloc$k

+ //

This is not a $math inlin$e

- TestParser.TestSpec("This is not a $math bloc$k", "

This is not a $math bloc$k

", "mathematics|advanced", context: "Example 10\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is not a $math inlin$e", "

This is not a $math inlin$e

", "mathematics|advanced", context: "Example 10\nSection Extensions / Math Inline\n"); } // For the closing `$` it requires a space after or a punctuation (but cannot be preceded by a space and cannot be used within a word): @@ -201,12 +201,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a $math \$ block$ + // This is a $math \$ inline$ // // Should be rendered as: - //

This is a \(math \$ block\)

+ //

This is a \(math \$ inline\)

- TestParser.TestSpec("This is a $math \\$ block$", "

This is a \\(math \\$ block\\)

", "mathematics|advanced", context: "Example 12\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a $math \\$ inline$", "

This is a \\(math \\$ inline\\)

", "mathematics|advanced", context: "Example 12\nSection Extensions / Math Inline\n"); } // At most, two `$` will be matched for the opening and closing: @@ -217,12 +217,12 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a $$$math block$$$ + // This is a $$$math inline$$$ // // Should be rendered as: - //

This is a \($math block$\)

+ //

This is a \($math inline$\)

- TestParser.TestSpec("This is a $$$math block$$$", "

This is a \\($math block$\\)

", "mathematics|advanced", context: "Example 13\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a $$$math inline$$$", "

This is a \\($math inline$\\)

", "mathematics|advanced", context: "Example 13\nSection Extensions / Math Inline\n"); } // Regular text can come both before and after the math inline @@ -233,15 +233,15 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is a $math block$ with text on both sides. + // This is a $math inline$ with text on both sides. // // Should be rendered as: - //

This is a \(math block\) with text on both sides.

+ //

This is a \(math inline\) with text on both sides.

- TestParser.TestSpec("This is a $math block$ with text on both sides.", "

This is a \\(math block\\) with text on both sides.

", "mathematics|advanced", context: "Example 14\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is a $math inline$ with text on both sides.", "

This is a \\(math inline\\) with text on both sides.

", "mathematics|advanced", context: "Example 14\nSection Extensions / Math Inline\n"); } - // A mathematic block takes precedence over standard emphasis `*` `_`: + // A mathematic inline block takes precedence over standard emphasis `*` `_`: [Test] public void ExtensionsMathInline_Example015() { @@ -249,15 +249,15 @@ namespace Markdig.Tests.Specs.Math // Section: Extensions / Math Inline // // The following Markdown: - // This is *a $math* block$ + // This is *a $math* inline$ // // Should be rendered as: - //

This is *a \(math* block\)

+ //

This is *a \(math* inline\)

- TestParser.TestSpec("This is *a $math* block$", "

This is *a \\(math* block\\)

", "mathematics|advanced", context: "Example 15\nSection Extensions / Math Inline\n"); + TestParser.TestSpec("This is *a $math* inline$", "

This is *a \\(math* inline\\)

", "mathematics|advanced", context: "Example 15\nSection Extensions / Math Inline\n"); } - // An opening $$ at the beginning of a line should not be interpreted as a Math block: + // An opening $$ at the beginning of a line should not be interpreted as a Math inline: [Test] public void ExtensionsMathInline_Example016() {