Skip to content

Commit

Permalink
Callouts should not be parsed from nested code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Dec 19, 2024
1 parent 6ddd7a6 commit 3f5f672
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public override bool Close(BlockProcessor processor, Block block)
span = lines.Lines[index].Slice.AsSpan();
}

if (codeBlock.OpeningFencedCharCount > 3)
continue;

var matchClassicCallout = CallOutParser.CallOutNumber().EnumerateMatches(span);
var callOut = EnumerateAnnotations(matchClassicCallout, ref span, ref callOutIndex, originatingLine, false);

Expand Down

0 comments on commit 3f5f672

Please sign in to comment.