Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownRendererFeaturePack

OfficeIMO.MarkdownRenderer

Namespace
OfficeIMO.MarkdownRenderer
Assembly
OfficeIMO.MarkdownRenderer
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

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.

Accepted by parameters 6

Constructors

MarkdownRendererFeaturePack 2 overloads
public MarkdownRendererFeaturePack(string id, string name, Action<MarkdownRendererOptions> apply, Action<MarkdownLoadOptions>? applyReader = null) #

Creates a new host-level feature pack.

Parameters

id string required
name string required
apply System.Action<OfficeIMO.MarkdownRenderer.MarkdownRendererOptions> required
applyReader System.Action<OfficeIMO.Markdown.MarkdownLoadOptions>? = null optional
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 required
name string required
plugins System.Collections.Generic.IEnumerable<OfficeIMO.MarkdownRenderer.MarkdownRendererPlugin> required
apply System.Action<OfficeIMO.MarkdownRenderer.MarkdownRendererOptions>? = null optional
applyReader System.Action<OfficeIMO.Markdown.MarkdownLoadOptions>? = null optional

Methods

public void Apply(MarkdownRendererOptions options) #

Applies the feature pack once to the supplied renderer options.

Parameters

options OfficeIMO.MarkdownRenderer.MarkdownRendererOptions required
public bool IsApplied(MarkdownRendererOptions options) #

Returns true when the feature pack has already been applied.

Parameters

options OfficeIMO.MarkdownRenderer.MarkdownRendererOptions required

Returns

bool

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.