refactor: simplify md pipeline
This commit is contained in:
parent
190e247067
commit
0b9841a724
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user