Related Interfaces:
IMarkdownService.cs
Fields
Constructor
Properties
MarkdownService does not have any properties.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Wraps the MarkDig SDK for handling markdown.
IMarkdownService.cs
| Field Name | Type | Description |
|---|---|---|
_pipeline | MarkdownPipeline | MarkDig pipeline for handling a markdown string |
public MarkdownService()
{
_pipeline = new MarkdownPipelineBuilder()
.UseAdvancedExtensions()
.UseSoftlineBreakAsHardlineBreak()
.Build();
}
MarkdownService does not have any properties.
| Method Name | Description | Parameters | Return Type |
|---|---|---|---|
ConvertMarkdownToHtml | Applies _pipeline to convert markdown to HTML | string | string |
AddSuperscriptCitations | Replaces [doc#] notation with superscripted citation numbers | string | string |
namespace Numa.Interfaces
{
public interface IMarkdownService
{
string ConvertMarkdownToHtml( string markdown );
string AddSuperscriptCitations( string markdown );
}
}
