Skip to content

Commit 72250cb

Browse files
committed
Rename to IBlockTitle
1 parent 91ceb09 commit 72250cb

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Elastic.Markdown/Myst/Directives/Admonition/AdmonitionBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Elastic.Markdown.Myst.Directives.Admonition;
88

99
public class DropdownBlock(DirectiveBlockParser parser, ParserContext context) : AdmonitionBlock(parser, "dropdown", context);
1010

11-
public class AdmonitionBlock : DirectiveBlock, ITitledBlock
11+
public class AdmonitionBlock : DirectiveBlock, IBlockTitle
1212
{
1313
public AdmonitionBlock(DirectiveBlockParser parser, string admonition, ParserContext context) : base(parser, context)
1414
{

src/Elastic.Markdown/Myst/Directives/DirectiveBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace Elastic.Markdown.Myst.Directives;
1515

16-
public interface ITitledBlock
16+
public interface IBlockTitle
1717
{
1818
string Title { get; }
1919
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public override void FinalizeAndValidate(ParserContext context)
1616
}
1717
}
1818

19-
public class StepBlock(DirectiveBlockParser parser, ParserContext context) : DirectiveBlock(parser, context), ITitledBlock
19+
public class StepBlock(DirectiveBlockParser parser, ParserContext context) : DirectiveBlock(parser, context), IBlockTitle
2020
{
2121
public override string Directive => "step";
2222
public string Title { get; private set; } = string.Empty;

src/Elastic.Markdown/Myst/Directives/Tabs/TabSetBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public int FindIndex()
3333
}
3434

3535
public class TabItemBlock(DirectiveBlockParser parser, ParserContext context)
36-
: DirectiveBlock(parser, context), ITitledBlock
36+
: DirectiveBlock(parser, context), IBlockTitle
3737
{
3838
public override string Directive => "tab-item";
3939

src/Elastic.Markdown/Myst/Renderers/LlmMarkdown/LlmBlockRenderers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ protected override void Write(LlmMarkdownRenderer renderer, DirectiveBlock obj)
388388
// skip for these directives
389389
// otherwise it will render as <note title="Note">
390390
break;
391-
case ITitledBlock titledBlock:
391+
case IBlockTitle titledBlock:
392392
renderer.Writer.Write($" title=\"{titledBlock.Title}\"");
393393
break;
394394
}

0 commit comments

Comments
 (0)