refactor: simplify md pipeline

This commit is contained in:
Oliver Booth 2023-08-09 23:19:19 +01:00
parent 190e247067
commit 0b9841a724
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61

View File

@ -16,19 +16,9 @@ builder.Services.AddSingleton<ConfigurationService>();
builder.Services.AddSingleton<TemplateService>(); builder.Services.AddSingleton<TemplateService>();
builder.Services.AddSingleton(provider => new MarkdownPipelineBuilder() builder.Services.AddSingleton(provider => new MarkdownPipelineBuilder()
.UseAbbreviations() .Use(new TemplateExtension(provider.GetRequiredService<TemplateService>()))
.UseAdvancedExtensions() .UseAdvancedExtensions()
.UseBootstrap() .UseBootstrap()
.UseCitations()
.UseDiagrams()
.UseFigures()
.UseFooters()
.UseFootnotes()
.UseGlobalization()
.UseMathematics()
.UseAutoIdentifiers()
.UseAutoLinks()
.Use(new TemplateExtension(provider.GetRequiredService<TemplateService>()))
.Build()); .Build());
builder.Services.AddDbContextFactory<BlogContext>(); builder.Services.AddDbContextFactory<BlogContext>();