diff --git a/src/Markdig.Tests/Specs/MediaSpecs.md b/src/Markdig.Tests/Specs/MediaSpecs.md index e9bd49100..7781a5a11 100644 --- a/src/Markdig.Tests/Specs/MediaSpecs.md +++ b/src/Markdig.Tests/Specs/MediaSpecs.md @@ -17,9 +17,9 @@ Allows to embed audio/video links to popular website:  . -
- - + + + - + ```````````````````````````````` \ No newline at end of file diff --git a/src/Markdig.Tests/Specs/Specs.cs b/src/Markdig.Tests/Specs/Specs.cs index 4d3234ce6..63c16cc15 100644 --- a/src/Markdig.Tests/Specs/Specs.cs +++ b/src/Markdig.Tests/Specs/Specs.cs @@ -17643,10 +17643,10 @@ public void ExtensionsGenericAttributes_Example001() //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 attached-bool-property2}", "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 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): @@ -19769,14 +19769,14 @@ public void ExtensionsMedialinks_Example001() //  // // Should be rendered as: - // - // - // + // + // + // // - // + // Console.WriteLine("Example {0}" + Environment.NewLine + "Section: {0}" + Environment.NewLine, 1, "Extensions Media links"); - TestParser.TestSpec("\n\n\n\n\n\n\n\n", "\n\n\n\n", "medialinks|advanced+medialinks"); + TestParser.TestSpec("\n\n\n\n\n\n\n\n", "\n\n\n\n", "medialinks|advanced+medialinks"); } } // # Extensions diff --git a/src/Markdig/Renderers/HtmlRenderer.cs b/src/Markdig/Renderers/HtmlRenderer.cs index 8373e93f9..9e8a5412d 100644 --- a/src/Markdig/Renderers/HtmlRenderer.cs +++ b/src/Markdig/Renderers/HtmlRenderer.cs @@ -314,12 +314,9 @@ public HtmlRenderer WriteAttributes(HtmlAttributes attributes, Func