diff --git a/docs/syntax/applies.md b/docs/syntax/applies.md index 4eb3fd79f..e5fc267eb 100644 --- a/docs/syntax/applies.md +++ b/docs/syntax/applies.md @@ -52,9 +52,7 @@ Are equivalent, note `all` just means we won't be rendering the version portion ## This section has its own applies annotations [#sections] :::{applies} -:stack: unavailable -:serverless: tech-preview -:cloud: ga +:serverless: unavailable ::: :::{note} diff --git a/src/Elastic.Markdown/Myst/Comments/CommentBlockParser.cs b/src/Elastic.Markdown/Myst/Comments/CommentBlockParser.cs index cdeccf996..67996fa6f 100644 --- a/src/Elastic.Markdown/Myst/Comments/CommentBlockParser.cs +++ b/src/Elastic.Markdown/Myst/Comments/CommentBlockParser.cs @@ -155,7 +155,7 @@ public override bool Close(BlockProcessor processor, Block block) { if (!processor.TrackTrivia) { - var heading = (HeadingBlock)block; + var heading = (CommentBlock)block; heading.Lines.Trim(); } diff --git a/src/Elastic.Markdown/Myst/MarkdownParser.cs b/src/Elastic.Markdown/Myst/MarkdownParser.cs index 1aa89a12c..59dc8cc0e 100644 --- a/src/Elastic.Markdown/Myst/MarkdownParser.cs +++ b/src/Elastic.Markdown/Myst/MarkdownParser.cs @@ -60,7 +60,6 @@ public static MarkdownPipeline Pipeline return _pipeline; var builder = new MarkdownPipelineBuilder() - .EnableTrackTrivia() .UseInlineAnchors() .UsePreciseSourceLocation() .UseDiagnosticLinks() diff --git a/tests/Elastic.Markdown.Tests/Directives/AdmonitionTests.cs b/tests/Elastic.Markdown.Tests/Directives/AdmonitionTests.cs index 0f6871ca0..750cd56e3 100644 --- a/tests/Elastic.Markdown.Tests/Directives/AdmonitionTests.cs +++ b/tests/Elastic.Markdown.Tests/Directives/AdmonitionTests.cs @@ -120,10 +120,10 @@ public class NestedDirectiveWithListTests(ITestOutputHelper output) : DirectiveT { [Fact] public void Render() => Html.Should().Contain(""" -
Note
- Hello, World! + Hello, World!Note
- Hello, World! + Hello, World!Note
- Hello, World! + Hello, World!Note
- Hello, World! + Hello, World!Links:
"""); diff --git a/tests/authoring/Blocks/Lists.fs b/tests/authoring/Blocks/Lists.fs new file mode 100644 index 000000000..fbb73b663 --- /dev/null +++ b/tests/authoring/Blocks/Lists.fs @@ -0,0 +1,30 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information +module ``block elements``.``list elements`` + +open Xunit +open authoring + +type ``supports loose lists`` () = + static let markdown = Setup.Markdown """ +* **Consumption-based billing**: + + You pay for the actual product used, regardless of the application or use case. This is different from subscription-based billing models where customers pay a flat fee restricted by usage quotas, or one-time upfront payment billing models such as those used for on-prem software licenses. + + You can purchase credits for a single or multi-year contract. Consumption is on demand, and every month we deduct from your balance based on your usage and contract terms. This allows you to seamlessly expand your usage to the full extent of your requirements and available budget, without any quotas or restrictions. +""" + + [+ Consumption-based billing:
+You pay for the actual product used, regardless of the application or use case. This is different from subscription-based billing models where customers pay a flat fee restricted by usage quotas, or one-time upfront payment billing models such as those used for on-prem software licenses.
+You can purchase credits for a single or multi-year contract. Consumption is on demand, and every month we deduct from your balance based on your usage and contract terms. This allows you to seamlessly expand your usage to the full extent of your requirements and available budget, without any quotas or restrictions.
+An ECU is a unit of aggregate consumption across multiple resources over time.
+Each type of computing resource (capacity, data transfer, and snapshot) that you consume has its own unit of measure.
+In order to aggregate consumption across different resource types, all resources are priced in ECU.
+Check Using Elastic Consumption Units for billing for more details.
+