From 5e4a917dbd25c6c40e2d184cfaca908c2908aca5 Mon Sep 17 00:00:00 2001 From: Sergey Nozhenko Date: Wed, 18 Dec 2024 12:38:13 +0300 Subject: [PATCH] Fixes an error in the AbbreviationParser. --- src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs b/src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs index 863e882f..0b9548b1 100644 --- a/src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs +++ b/src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs @@ -171,7 +171,7 @@ private void DocumentOnProcessInlinesBegin(InlineProcessor inlineProcessor, Inli // Process the remaining literal literal = new LiteralInline() { - Span = new SourceSpan(abbrInline.Span.End + 1, literal.Span.End), + Span = new SourceSpan(abbrInline.Span.End + 1, container.Span.End), Line = line, Column = column + match.Length, };