예제 #1
0
파일: Markdown.cs 프로젝트: john-h-k/xmlmd
 public void AddImage(MarkdownText altText, string href)
 {
     _output.Write('!');
     _output.Write('[');
     _output.Write(altText);
     _output.Write(']');
     _output.Write('(');
     _output.Write(href);
     _output.Write(')');
 }
예제 #2
0
파일: Markdown.cs 프로젝트: john-h-k/xmlmd
 public void AddHeader(int level, MarkdownText text)
 {
     _output.Write(new string('#', level));
     _output.Write(' ');
     _output.WriteLine(text);
 }
예제 #3
0
파일: Markdown.cs 프로젝트: john-h-k/xmlmd
 public void AddText(MarkdownText text) => _output.Write(text);
예제 #4
0
파일: Markdown.cs 프로젝트: john-h-k/xmlmd
 public static MarkdownText Header(int level, MarkdownText text) => new(new string('#', level) + " " + text.Text);