static void Main(string[] args) { Marked marked = new Marked(); string path = AppDomain.CurrentDomain.BaseDirectory + "api.md"; string txt = File.ReadAllText(path); string result = marked.Parse(txt); File.WriteAllText(AppDomain.CurrentDomain.BaseDirectory + "result.html", result); Console.WriteLine(result); Console.Read(); }
public static string Parse(string src, Options options) { var marked = new Marked(options); return(marked.Parse(src)); }