public static void WriteToTrace(this IMarkdownElement element)
        {
            var markdown = element.ToMarkdown();

            markdown.WriteToTraceWithDelimiter("Markdown");

            Trace.WriteLine("");

            var markdownSharp = new MarkdownToHtmlConverter();
            var html          = markdownSharp.Transform(markdown);

            html.WriteToTraceWithDelimiter("HTML");
        }
 public static string MarkdownToHtml(this string markdown)
 {
     var converter = new MarkdownToHtmlConverter();
     return converter.Transform(markdown);
 }
Exemple #3
0
        public static string MarkdownToHtml(this string markdown)
        {
            var converter = new MarkdownToHtmlConverter();

            return(converter.Transform(markdown));
        }