using Markdig;
using Markdig.Renderers;
namespace OliverBooth.Extensions.Markdig.Markdown.Timestamp;
///
/// Represents a Markdig extension that supports Discord-style timestamps.
///
public class TimestampExtension : IMarkdownExtension
{
///
public void Setup(MarkdownPipelineBuilder pipeline)
{
pipeline.InlineParsers.AddIfNotAlready();
}
///
public void Setup(MarkdownPipeline pipeline, IMarkdownRenderer renderer)
{
if (renderer is HtmlRenderer htmlRenderer)
{
htmlRenderer.ObjectRenderers.AddIfNotAlready();
}
}
}