diff --git a/src/Markdig/Renderers/Normalize/Inlines/CodeInlineRenderer.cs b/src/Markdig/Renderers/Normalize/Inlines/CodeInlineRenderer.cs index 7fdf4253..aaa38d8e 100644 --- a/src/Markdig/Renderers/Normalize/Inlines/CodeInlineRenderer.cs +++ b/src/Markdig/Renderers/Normalize/Inlines/CodeInlineRenderer.cs @@ -31,8 +31,8 @@ protected override void Write(NormalizeRenderer renderer, CodeInline obj) if (delimiterCount < count) delimiterCount = count; } - var delimiterRun = new string(obj.Delimiter, delimiterCount + 1); - renderer.Write(delimiterRun); + + renderer.Write(obj.Delimiter, delimiterCount + 1); if (content.Length != 0) { if (content[0] == obj.Delimiter) @@ -49,6 +49,6 @@ protected override void Write(NormalizeRenderer renderer, CodeInline obj) { renderer.Write(' '); } - renderer.Write(delimiterRun); + renderer.Write(obj.Delimiter, delimiterCount + 1); } } \ No newline at end of file