Пример #1
0
 public static void Start(MarkdownPagesOptions options, IVirtualPathFactory virtualPathFactory)
 {
     WebPageHttpHandlerExtensions.RegisterExtensions(options.MarkdownExtensions.Select(ext => ext.RemoveLeadingDot()));
     VirtualPathFactoryManager.RegisterVirtualPathFactory(virtualPathFactory);
 }
 public MarkdownVirtualPathFactory(MarkdownPagesOptions options, IMarkdownParser markdownParser)
 {
     MarkdownExtensions = options.MarkdownExtensions.Select(ext => ext.AddLeadingDot()).ToArray();
     MarkdownParser     = markdownParser;
 }
Пример #3
0
 public static void Start(MarkdownPagesOptions options)
 {
     Start(options, new MarkdownVirtualPathFactory(options, new MarkdownParser(options)));
 }