public Task <DeferredMarkdownRenderingResult> DeferredRenderAsync(string markdown, MarkdownPostProcessor postProcessor = null) { var id = Guid.NewGuid(); _deferred.TryAdd(id, new DeferredMarkdownQueueItem(markdown, postProcessor)); return(Task.FromResult(new DeferredMarkdownRenderingResult(id, $"<markdown_{id}/>"))); }
public DeferredMarkdownQueueItem(string markdown, MarkdownPostProcessor postProcessor) { Markdown = markdown; PostProcessor = postProcessor; }