diff --git a/CommonMark/Parser/BlockMethods.cs b/CommonMark/Parser/BlockMethods.cs index 5e2ba2a..1f4d94a 100644 --- a/CommonMark/Parser/BlockMethods.cs +++ b/CommonMark/Parser/BlockMethods.cs @@ -391,14 +391,6 @@ private static int ParseListMarker(string ln, int pos, out ListData data) return (pos - startpos); } - private static bool ContainsSingleLine(StringContent content) - { - if (content == null) - return true; - var i = content.IndexOf('\n'); - return (i == -1 || i == content.Length - 1); - } - private static bool ListsMatch(ListData listData, ListData itemData) { return (listData.ListType == itemData.ListType && @@ -657,8 +649,7 @@ public static void IncorporateLine(LineInfo line, ref Block curptr) } else if (!indented && container.Tag == BlockTag.Paragraph && (curChar == '=' || curChar == '-') - && 0 != (matched = Scanner.scan_setext_heading_line(ln, first_nonspace, ln.Length)) - && ContainsSingleLine(container.StringContent)) + && 0 != (matched = Scanner.scan_setext_heading_line(ln, first_nonspace, ln.Length))) { container.Tag = BlockTag.SetextHeading;