Skip to content

Commit 055f622

Browse files
committed
Use Markdig
1 parent b427c0a commit 055f622

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Elastic.Markdown/Myst/Directives/Stepper/StepViewModel.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information
44

5+
using Elastic.Markdown.Helpers;
6+
using Markdig.Syntax;
7+
using Markdig.Syntax.Inlines;
58
using Microsoft.AspNetCore.Html;
69

710
namespace Elastic.Markdown.Myst.Directives.Stepper;
@@ -13,7 +16,10 @@ public class StepViewModel : DirectiveViewModel
1316
public required int HeadingLevel { get; init; }
1417

1518
/// <summary>
16-
/// Renders the title with substitutions applied
19+
/// Renders the title with full markdown processing (substitutions, links, emphasis, etc.)
1720
/// </summary>
18-
public HtmlString RenderTitle() => new(Title);
21+
public HtmlString RenderTitle() =>
22+
// For now, just return the title as-is since substitutions are already applied in FinalizeAndValidate
23+
// In the future, this could be extended to handle full markdown processing using the HTML renderer
24+
new(Title);
1925
}

0 commit comments

Comments
 (0)