diff --git a/src/Elastic.Markdown/Myst/CallOutCode/CallOutAwareFencedCodeBlock.cs b/src/Elastic.Markdown/Myst/CallOutCode/CallOutAwareFencedCodeBlock.cs index ec123f2..cc148f9 100644 --- a/src/Elastic.Markdown/Myst/CallOutCode/CallOutAwareFencedCodeBlock.cs +++ b/src/Elastic.Markdown/Myst/CallOutCode/CallOutAwareFencedCodeBlock.cs @@ -151,7 +151,11 @@ public override bool Close(BlockProcessor processor, Block block) if (codeBlock.CallOuts is not null) { foreach (var callout in codeBlock.CallOuts) - lines.Lines[callout.Line - 1].Slice.End = callout.SliceStart; + { + var line = lines.Lines[callout.Line - 1]; + line.Slice.End = line.Slice.Start + callout.SliceStart; + + } } var inlineAnnotations = codeBlock.CallOuts?.Where(c => c.InlineCodeAnnotation).Count() ?? 0;