Eliassen.Markdig
0.1.84
See the version list below for details.
dotnet add package Eliassen.Markdig --version 0.1.84
NuGet\Install-Package Eliassen.Markdig -Version 0.1.84
<PackageReference Include="Eliassen.Markdig" Version="0.1.84" />
paket add Eliassen.Markdig --version 0.1.84
#r "nuget: Eliassen.Markdig, 0.1.84"
// Install Eliassen.Markdig as a Cake Addin #addin nuget:?package=Eliassen.Markdig&version=0.1.84 // Install Eliassen.Markdig as a Cake Tool #tool nuget:?package=Eliassen.Markdig&version=0.1.84
Eliassen.Markdig
MarkdownToHtmlConversionHandler
Converts Markdown documents to HTML format.
Properties
- Destinations: Gets the supported content types for the destination stream.
- Sources: Gets the supported content types for the source stream.
Methods
Constructor
Initializes a new instance of MarkdownToHtmlConversionHandler.
Parameters
- pipeline: (optional) The pipeline to use for conversion.
ConvertAsync(System.IO.Stream,System.String,System.IO.Stream,System.String)
Converts Markdown content from the source stream to HTML format and writes it to the destination stream asynchronously.
Parameters
- source: The source stream containing the Markdown content.
- sourceContentType: The content type of the source stream.
- destination: The destination stream where the HTML content will be written.
- destinationContentType: The content type of the destination stream.
Return value
A task representing the asynchronous conversion operation.
Exceptions
- System.NotSupportedException: Thrown when either the source or destination content type is not supported.
SupportedDestination(System.String)
Checks if the specified content type is supported for the destination stream.
Parameters
- contentType: The content type to check.
Return value
True if the content type is supported; otherwise, false.
SupportedSource(System.String)
Checks if the specified content type is supported for the source stream.
Parameters
- contentType: The content type to check.
Return value
True if the content type is supported; otherwise, false.
ServiceCollectionExtensions
Provides extension methods for configuring services related to Markdig.
Methods
TryAddMarkdigServices(Microsoft.Extensions.DependencyInjection.IServiceCollection)
Configures services for Markdig.
Parameters
- services: The service collection to add the services to.
Return value
The modified service collection.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Eliassen.Documents.Abstractions (>= 0.1.84)
- Markdig (>= 0.37.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Eliassen.Markdig:
Package | Downloads |
---|---|
Eliassen.Common.Extensions
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.