Skip to content

Commit

Permalink
Better handling of closing markdown getting parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
zateutsch committed Feb 10, 2025
1 parent 0f3c3e2 commit 07f00d1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ public void GenerateSolution(string problem, string currentLanguage)
{
(_leadingMarkdownParsed, generatedCode) = ParseOutLeadingMarkdown(generatedCode);
}
else if (generatedCode.Contains("```\n"))
{
break;
}
else
{
_currentCode = generatedCode;
Expand Down

0 comments on commit 07f00d1

Please sign in to comment.