-
Notifications
You must be signed in to change notification settings - Fork 0
/
Markdown.cs
41 lines (35 loc) · 900 Bytes
/
Markdown.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
namespace swagger2md;
public static class Markdown
{
public static void Header1(string header)
{
Console.WriteLine($"# {header}");
Console.WriteLine("---");
Console.WriteLine();
}
public static void Header2(string header)
{
Console.WriteLine($"## {header}");
Console.WriteLine();
}
public static void Header3(string header)
{
Console.WriteLine($"### {header}");
Console.WriteLine();
}
public static void TableOfContents()
{
Console.WriteLine("[[_TOC_]]"); // add table of contents (azure wiki specific)
Console.WriteLine();
}
public static void BoldText(string text)
{
Console.WriteLine($"**{text}**");
Console.WriteLine();
}
public static void Text(string text)
{
Console.WriteLine(text);
Console.WriteLine();
}
}