Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownTranscriptPreparation

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Modifiers
static

Explicit transcript-preparation helpers for hosts ingesting or exporting IntelligenceX-style markdown.

Inheritance

  • object
  • MarkdownTranscriptPreparation

Examples

var prepared = MarkdownTranscriptPreparation.PrepareIntelligenceXTranscriptBody(markdown);
var document = MarkdownTranscriptPreparation.PrepareIntelligenceXTranscriptDocument(markdown);
var exportReady = MarkdownTranscriptPreparation.PrepareIntelligenceXTranscriptForExport(markdown);
var docxReady = MarkdownTranscriptPreparation.PrepareIntelligenceXTranscriptForDocx(
    markdown,
    preservesGroupedDefinitionLikeParagraphs: true);

Use these helpers when the host explicitly wants the IntelligenceX transcript contract. Generic markdown ingestion should stay on

profiles and document transforms instead.

Methods

public static void ApplyIntelligenceXTranscriptReaderContract(MarkdownLoadOptions options, bool preservesGroupedDefinitionLikeParagraphs = true, MarkdownVisualFenceLanguageMode? visualFenceLanguageMode = null) #

Applies the explicit IX transcript reader contract to an existing reader configuration in place. This preserves the caller's security/profile toggles while layering in transcript normalization and optional AST transforms.

Parameters

options OfficeIMO.Markdown.MarkdownLoadOptions required
preservesGroupedDefinitionLikeParagraphs bool = true optional
visualFenceLanguageMode OfficeIMO.Markdown.MarkdownVisualFenceLanguageMode? = null optional
public static MarkdownLoadOptions CreateIntelligenceXTranscriptReaderOptions(MarkdownDialectProfile readerProfile = OfficeIMO, bool preservesGroupedDefinitionLikeParagraphs = true, MarkdownVisualFenceLanguageMode? visualFenceLanguageMode = null) #

Creates reader options for the explicit IX transcript ingestion contract.

Parameters

readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile = OfficeIMO optional
Reader profile to compose on top of.
preservesGroupedDefinitionLikeParagraphs bool = true optional
Whether grouped simple Label: value lines should remain parsed as definition lists. When false, a document transform expands simple grouped entries back into paragraphs.
visualFenceLanguageMode OfficeIMO.Markdown.MarkdownVisualFenceLanguageMode? = null optional
Optional legacy JSON visual-fence upgrade mode to compose into the transcript reader contract. When supplied, plain JSON code blocks can be upgraded into semantic visual fenced blocks during document transforms.

Returns

MarkdownLoadOptions Configured reader options for transcript parsing.
public static string PrepareIntelligenceXTranscriptBody(string? markdown) #

Applies the shared IX transcript body preparation contract.

Parameters

markdown string? required
Transcript markdown source.

Returns

string Normalized transcript body markdown.
public static MarkdownDocument PrepareIntelligenceXTranscriptDocument(string? markdown, MarkdownDialectProfile readerProfile = OfficeIMO, MarkdownVisualFenceLanguageMode? visualFenceLanguageMode = null) #

Parses transcript markdown into an AST using the explicit IX transcript contract.

Parameters

markdown string? required
Transcript markdown source.
readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile = OfficeIMO optional
Reader profile to compose on top of.
visualFenceLanguageMode OfficeIMO.Markdown.MarkdownVisualFenceLanguageMode? = null optional
Optional legacy JSON visual-fence upgrade mode to apply while preparing the transcript document.

Returns

MarkdownDocument Prepared transcript document.
public static MarkdownDocument PrepareIntelligenceXTranscriptDocumentForDocx(string? markdown, bool preservesGroupedDefinitionLikeParagraphs, MarkdownDialectProfile readerProfile = OfficeIMO, MarkdownVisualFenceLanguageMode? visualFenceLanguageMode = null) #

Parses transcript markdown for DOCX/export-oriented hosts using the explicit IX transcript contract.

Parameters

markdown string? required
Transcript markdown source.
preservesGroupedDefinitionLikeParagraphs bool required
Whether grouped simple definition-like lines should remain definition lists.
readerProfile OfficeIMO.Markdown.MarkdownLoadOptions.MarkdownDialectProfile = OfficeIMO optional
Reader profile to compose on top of.
visualFenceLanguageMode OfficeIMO.Markdown.MarkdownVisualFenceLanguageMode? = null optional
Optional legacy JSON visual-fence upgrade mode to apply while preparing the transcript document.

Returns

MarkdownDocument Prepared transcript document.
public static string PrepareIntelligenceXTranscriptForDocx(string? markdown, bool preservesGroupedDefinitionLikeParagraphs) #

Applies the shared IX transcript DOCX-preparation contract.

Parameters

markdown string? required
Transcript markdown source.
preservesGroupedDefinitionLikeParagraphs bool required
Whether the host renderer preserves grouped definition-like lines without compatibility repair.

Returns

string DOCX-prepared transcript markdown.
PrepareIntelligenceXTranscriptForExport 2 overloads
public static string PrepareIntelligenceXTranscriptForExport(string? markdown, MarkdownVisualFenceLanguageMode visualFenceLanguageMode) #

Applies the shared IX transcript export-preparation contract after any host-specific transport markers have already been stripped.

Parameters

markdown string? required
Transcript markdown source after host-specific marker cleanup.
visualFenceLanguageMode OfficeIMO.Markdown.MarkdownVisualFenceLanguageMode required
Target fence-language mode for upgraded legacy JSON visual payloads. Use MarkdownVisualFenceLanguageMode.IntelligenceXAliasFence for compatibility-first IX exports or MarkdownVisualFenceLanguageMode.GenericSemanticFence for portable generic markdown exports.

Returns

string Export-prepared transcript markdown.
public static string PrepareIntelligenceXTranscriptForExport(string? markdown) #

Applies the shared IX transcript export-preparation contract after any host-specific transport markers have already been stripped.

Parameters

markdown string? required
Transcript markdown source after host-specific marker cleanup.

Returns

string Export-prepared transcript markdown using legacy IX alias fence languages.