From bfdb03bd78b1c51940604cc85842e16f114468c3 Mon Sep 17 00:00:00 2001 From: Meziantou Date: Sat, 27 May 2017 16:16:33 +0200 Subject: [PATCH] Update tests --- src/Markdig.Tests/Specs/GenericAttributesSpecs.md | 4 ++-- src/Markdig.Tests/Specs/Specs.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Markdig.Tests/Specs/GenericAttributesSpecs.md b/src/Markdig.Tests/Specs/GenericAttributesSpecs.md index 547955fd..defd2ee2 100644 --- a/src/Markdig.Tests/Specs/GenericAttributesSpecs.md +++ b/src/Markdig.Tests/Specs/GenericAttributesSpecs.md @@ -27,13 +27,13 @@ The following shows that attributes is attached to the current block or the prev This is a heading{#heading-link2} ----------------- -This is a paragraph with an attached attributes {#myparagraph attached-bool-property} +This is a paragraph with an attached attributes {#myparagraph attached-bool-property attached-bool-property2} .

This is a heading with an an attribute

This is a heading

This is a link

This is a heading

-

This is a paragraph with an attached attributes

+

This is a paragraph with an attached attributes

```````````````````````````````` The following shows that attributes can be attached to the next block if they are used inside a single line just preceding the block (and preceded by a blank line or beginning of a block container): diff --git a/src/Markdig.Tests/Specs/Specs.cs b/src/Markdig.Tests/Specs/Specs.cs index 6dedfb0a..f806cdcf 100644 --- a/src/Markdig.Tests/Specs/Specs.cs +++ b/src/Markdig.Tests/Specs/Specs.cs @@ -17465,17 +17465,17 @@ namespace Markdig.Tests // This is a heading{#heading-link2} // ----------------- // - // This is a paragraph with an attached attributes {#myparagraph attached-bool-property} + // This is a paragraph with an attached attributes {#myparagraph attached-bool-property attached-bool-property2} // // Should be rendered as: //

This is a heading with an an attribute

//

This is a heading

//

This is a link

//

This is a heading

- //

This is a paragraph with an attached attributes

+ //

This is a paragraph with an attached attributes

Console.WriteLine("Example {0}" + Environment.NewLine + "Section: {0}" + Environment.NewLine, 1, "Extensions Generic Attributes"); - TestParser.TestSpec("# This is a heading with an an attribute{#heading-link}\n\n# This is a heading # {#heading-link2}\n\n[This is a link](http://google.com){#a-link .myclass data-lang=fr data-value=\"This is a value\"}\n\nThis is a heading{#heading-link2}\n-----------------\n\nThis is a paragraph with an attached attributes {#myparagraph attached-bool-property}", "

This is a heading with an an attribute

\n

This is a heading

\n

This is a link

\n

This is a heading

\n

This is a paragraph with an attached attributes

", "attributes|advanced"); + TestParser.TestSpec("# This is a heading with an an attribute{#heading-link}\n\n# This is a heading # {#heading-link2}\n\n[This is a link](http://google.com){#a-link .myclass data-lang=fr data-value=\"This is a value\"}\n\nThis is a heading{#heading-link2}\n-----------------\n\nThis is a paragraph with an attached attributes {#myparagraph attached-bool-property attached-bool-property2}", "

This is a heading with an an attribute

\n

This is a heading

\n

This is a link

\n

This is a heading

\n

This is a paragraph with an attached attributes

", "attributes|advanced"); } } // The following shows that attributes can be attached to the next block if they are used inside a single line just preceding the block (and preceded by a blank line or beginning of a block container):