Ejemplo n.º 1
0
        public static Markdig.MarkdownPipeline CreatePipeline(string jiraBaseUrl)
        {
            PipeTableOptions pipeTableOptions = new PipeTableOptions
            {
                RequireHeaderSeparator = false
            };

            MarkdownPipelineBuilder pipeline = new Markdig.MarkdownPipelineBuilder()
                                               .UseAutoLinks() // convert `http://...` into HTML `<a href ...>`
                                               .UsePipeTables(pipeTableOptions);

            if (!String.IsNullOrWhiteSpace(jiraBaseUrl))
            {
                pipeline.UseJiraLinks(new JiraLinkOptions(jiraBaseUrl));
            }

            return(pipeline.Build());
        }