Skip to content

Commit 7f6bfa8

Browse files
committed
Move condition
1 parent 3c0b7f3 commit 7f6bfa8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@ public override BlockState TryContinue(BlockProcessor processor, Block block)
169169
if (!line.StartsWith(":"))
170170
return base.TryContinue(processor, block);
171171

172-
if (block is not DirectiveBlock directiveBlock)
172+
if (line.StartsWith(":::"))
173173
return base.TryContinue(processor, block);
174174

175-
if (line.StartsWith(":::"))
175+
176+
if (block is not DirectiveBlock directiveBlock)
176177
return base.TryContinue(processor, block);
177178

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

0 commit comments

Comments
 (0)