API Reference
MarkdownRendererFeaturePack
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
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- 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<MarkdownReaderOptions> applyReader = null) #Creates a new host-level feature pack.
Parameters
- id System.String
- name System.String
- apply System.Action{OfficeIMO.MarkdownRenderer.MarkdownRendererOptions}
- applyReader System.Action{OfficeIMO.Markdown.MarkdownReaderOptions} = null
public MarkdownRendererFeaturePack(String id, String name, IEnumerable<MarkdownRendererPlugin> plugins, Action<MarkdownRendererOptions> apply = null, Action<MarkdownReaderOptions> applyReader = null) #Creates a new host-level feature pack from reusable plugins plus an optional custom apply step.
Parameters
- id System.String
- name System.String
- plugins System.Collections.Generic.IEnumerable{OfficeIMO.MarkdownRenderer.MarkdownRendererPlugin}
- apply System.Action{OfficeIMO.MarkdownRenderer.MarkdownRendererOptions} = null
- applyReader System.Action{OfficeIMO.Markdown.MarkdownReaderOptions} = null
Methods
public Void Apply(MarkdownRendererOptions options) #VoidApplies the feature pack once to the supplied renderer options.
Parameters
- options OfficeIMO.MarkdownRenderer.MarkdownRendererOptions
public Boolean IsApplied(MarkdownRendererOptions options) #BooleanReturns true when the feature pack has already been applied.
Parameters
- options OfficeIMO.MarkdownRenderer.MarkdownRendererOptions
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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<HtmlElementBlockConverter> HtmlElementBlockConverters { get; } #HTML-to-markdown custom element block converters contributed by the composed plugins in this feature pack.
public IReadOnlyList<HtmlInlineElementConverter> 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.