Gets a content provider for HTML content, sets the media type to
Html,
and updates the internal HTML document cache used by ParseHtmlAsync(IDocument, bool)
if the markup parameter is a IHtmlDocument.
- Namespace
- Statiq
.Common - Containing Type
- I
Execution Context Get Content Provider Extensions
Syntax
public static IContentProvider GetContentProvider(this IExecutionContext executionContext, IMarkupFormattable markup)
Parameters
| Name | Type | Description |
|---|---|---|
| executionContext | IExecutionContext | |
| markup | IMarkupFormattable |
Return Value
| Type | Description |
|---|---|
| IContentProvider |