Extend the ability of the hosted page markdown parser

This commit is contained in:
2025-11-22 17:40:17 +08:00
parent 0e44d9c514
commit 7b7a6c9218
8 changed files with 53 additions and 16 deletions

View File

@@ -7,6 +7,8 @@ using DysonNetwork.Zone.Publication;
using NodaTime;
using NodaTime.Serialization.SystemTextJson;
// Add this using statement
namespace DysonNetwork.Zone.Startup;
public static class ServiceCollectionExtensions
@@ -19,6 +21,7 @@ public static class ServiceCollectionExtensions
services.AddSingleton<IClock>(SystemClock.Instance);
services.AddHttpContextAccessor();
services.AddSingleton<ICacheService, CacheServiceRedis>();
services.AddSingleton<MarkdownConverter>();
services.AddHttpClient();