MarkdownRendererFeaturePack
OfficeIMO.MarkdownRenderer
Reusable host-level feature pack that can apply a coordinated set of renderer plugins, preprocessors, postprocessors, and option defaults in one idempotent step.
Inheritance
- object
- MarkdownRendererFeaturePack
Usage
Explore 7 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Accepted by parameters 6
- Method HtmlToMarkdownOptionsExtensions.ApplyFeaturePack
- Method HtmlToMarkdownOptionsExtensions.HasFeaturePack
- Method MarkdownReaderOptionsExtensions.ApplyFeaturePack
- Method MarkdownReaderOptionsExtensions.HasFeaturePack
- Method MarkdownRendererOptions.ApplyFeaturePack
- Method MarkdownRendererOptions.HasFeaturePack
Constructors
public MarkdownRendererFeaturePack(string id, string name, Action<MarkdownRendererOptions> apply, Action<MarkdownLoadOptions>? applyReader = null) #Creates a new host-level feature pack.
Parameters
- id string
- name string
- apply System.Action<OfficeIMO.MarkdownRenderer.MarkdownRendererOptions>
- applyReader System.Action<OfficeIMO.Markdown.MarkdownLoadOptions>? = null
public MarkdownRendererFeaturePack(string id, string name, IEnumerable<MarkdownRendererPlugin> plugins, Action<MarkdownRendererOptions>? apply = null, Action<MarkdownLoadOptions>? applyReader = null) #Creates a new host-level feature pack from reusable plugins plus an optional custom apply step.
Parameters
- id string
- name string
- plugins System.Collections.Generic.IEnumerable<OfficeIMO.MarkdownRenderer.MarkdownRendererPlugin>
- apply System.Action<OfficeIMO.MarkdownRenderer.MarkdownRendererOptions>? = null
- applyReader System.Action<OfficeIMO.Markdown.MarkdownLoadOptions>? = null
Methods
public void Apply(MarkdownRendererOptions options) #Applies the feature pack once to the supplied renderer options.
Parameters
- options OfficeIMO.MarkdownRenderer.MarkdownRendererOptions
public bool IsApplied(MarkdownRendererOptions options) #Returns true when the feature pack has already been applied.
Parameters
- options OfficeIMO.MarkdownRenderer.MarkdownRendererOptions
Returns
boolInherited Methods
Properties
public string Id { get; } #Stable feature-pack identifier used for idempotence and diagnostics.
public string Name { get; } #Friendly feature-pack name used for diagnostics and documentation.
public IReadOnlyList<MarkdownRendererPlugin> Plugins { get; } #Reusable renderer plugins contributed by this feature pack.
public IReadOnlyList<IMarkdownDocumentTransform> ReaderDocumentTransforms { get; } #Reader-side document transforms contributed by the composed plugins in this feature pack.
public IReadOnlyList<IMarkdownDocumentTransform> HtmlDocumentTransforms { get; } #HTML-to-markdown document transforms contributed by the composed plugins in this feature pack.
public IReadOnlyList<IMarkdownDocumentTransform> RendererDocumentTransforms { get; } #Renderer-side document transforms contributed by the composed plugins in this feature pack.
public IReadOnlyList<MarkdownHtmlBlockConverter> HtmlElementBlockConverters { get; } #HTML-to-markdown custom element block converters contributed by the composed plugins in this feature pack.
public IReadOnlyList<MarkdownHtmlInlineConverter> HtmlInlineElementConverters { get; } #HTML-to-markdown custom inline element converters contributed by the composed plugins in this feature pack.
public IReadOnlyList<MarkdownVisualElementRoundTripHint> VisualElementRoundTripHints { get; } #Shared visual-host HTML round-trip hints contributed by the composed plugins in this feature pack.