mirror of
https://github.com/xoofx/markdig.git
synced 2026-10-08 14:48:32 +00:00
Small fix for FencedCodeBlockParser
This commit is contained in:
@@ -120,7 +120,7 @@ namespace Textamina.Markdig.Parsers
|
||||
count--;
|
||||
}
|
||||
|
||||
if (count <=0 && !state.IsCodeIndent && line.TrimEnd())
|
||||
if (count <=0 && !state.IsCodeIndent && (c == '\0' || c.IsWhitespace()) && line.TrimEnd())
|
||||
{
|
||||
// Don't keep the last line
|
||||
return BlockState.BreakDiscard;
|
||||
|
||||
Reference in New Issue
Block a user