Esempio n. 1
0
 public MantisLinkRenderer(MantisLinkOptions options)
 {
     _options = options;
 }
Esempio n. 2
0
 public MantisLinkerExtension(MantisLinkOptions options)
 {
     _options = options;
 }
        public static MarkdownPipelineBuilder UseMantisLinks(this MarkdownPipelineBuilder pipeline, MantisLinkOptions options)
        {
            OrderedList <IMarkdownExtension> extensions;

            extensions = pipeline.Extensions;

            if (!extensions.Contains <MantisLinkerExtension>())
            {
                extensions.Add(new MantisLinkerExtension(options));
            }

            return(pipeline);
        }