Checkpoint

This commit is contained in:
Simon Gruber
2023-11-22 06:37:00 +01:00
parent e58fbc2d06
commit ea51f37f81
17 changed files with 511 additions and 270 deletions
@@ -0,0 +1,15 @@
using System.Text;
namespace Common.Extensions;
public static class StringBuilderExtensions
{
public static StringBuilder AppendHeading(this StringBuilder sb, int level, string text) => sb
.Append(new string('#', level))
.Append(' ')
.AppendParagraph(text);
public static StringBuilder AppendParagraph(this StringBuilder sb, string text) => sb
.AppendLine(text)
.AppendLine();
}