Skip to content

Commit a3ba076

Browse files
markdown: fix
1 parent a4649ef commit a3ba076

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/practice/markdown/.meta/Example.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private static string ParseText(this string markdown, bool list)
3939
return list ? textHtml : textHtml.WrapInTag(ParagraphTag);
4040
}
4141

42-
private static Tuple<bool, string> ParseHeader(this string markdown, bool list)
42+
private static Tuple<bool, string>? ParseHeader(this string markdown, bool list)
4343
{
4444
var headerNumber =
4545
markdown
@@ -56,7 +56,7 @@ private static Tuple<bool, string> ParseHeader(this string markdown, bool list)
5656
return Tuple.Create(false, html);
5757
}
5858

59-
private static Tuple<bool, string> ParseLineItem(this string markdown, bool list)
59+
private static Tuple<bool, string>? ParseLineItem(this string markdown, bool list)
6060
{
6161
if (!markdown.StartsWith(ListItemMarkdown))
6262
return null;
@@ -105,4 +105,4 @@ public static string Parse(string markdown)
105105

106106
return list ? html + ClosingTag(ListTag) : html;
107107
}
108-
}
108+
}

0 commit comments

Comments
 (0)