Skip to main content
Namespace: Numa.Services
Related Interfaces: IMarkdownService.cs

Fields

Field NameTypeDescription
_pipelineMarkdownPipelineMarkDig pipeline for handling a markdown string

Constructor

public MarkdownService()
{
    _pipeline = new MarkdownPipelineBuilder()
        .UseAdvancedExtensions()
        .UseSoftlineBreakAsHardlineBreak()
        .Build();
}

Properties

MarkdownService does not have any properties.

Methods

Method NameDescriptionParametersReturn Type
ConvertMarkdownToHtmlApplies _pipeline to convert markdown to HTMLstringstring
AddSuperscriptCitationsReplaces [doc#] notation with superscripted citation numbersstringstring

IMarkdownService.cs

namespace Numa.Interfaces
{
    public interface IMarkdownService
    {
        string ConvertMarkdownToHtml( string markdown );
        string AddSuperscriptCitations( string markdown );
    }
}