Small fix for FencedCodeBlockParser

This commit is contained in:
Alexandre Mutel
2016-02-27 02:01:56 +09:00
parent 418776479d
commit 72ca3f038b

View File

@@ -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;