MarkdownExtractor Class

The MarkdownExtractor class provides functionality to extract code blocks from markdown content. The extracted code blocks can include fenced code blocks with specified programming languages and indented code blocks. It also supports filtering by programming language.

Definition

Namespace: GenerativeAI.Utility
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public class MarkdownExtractor
Inheritance
Object    MarkdownExtractor

Constructors

MarkdownExtractorInitializes a new instance of the MarkdownExtractor class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
ExtractCodeBlocks Extracts code blocks from a given markdown text, optionally filtering by programming language. Code blocks can include fenced code blocks with a specific language tag as well as indented code blocks.
ExtractJsonBlocks 
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also