Skip to content

Commit

Permalink
Move condition
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek committed Feb 5, 2025
1 parent 3c0b7f3 commit 7f6bfa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Elastic.Markdown/Myst/Directives/DirectiveBlockParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ public override BlockState TryContinue(BlockProcessor processor, Block block)
if (!line.StartsWith(":"))
return base.TryContinue(processor, block);

if (block is not DirectiveBlock directiveBlock)
if (line.StartsWith(":::"))
return base.TryContinue(processor, block);

if (line.StartsWith(":::"))

if (block is not DirectiveBlock directiveBlock)
return base.TryContinue(processor, block);

var tokens = line.ToString().Split(':', 3, RemoveEmptyEntries | TrimEntries);
Expand Down

0 comments on commit 7f6bfa8

Please sign in to comment.