CodeBlockNode
Pennington.ApiMetadata
Fenced code block from a <code> element.
Properties
Languagestring- Language identifier used by the code fence (e.g.
csharp). Textstring- The code content with leading indentation stripped.
Constructors
CodeBlockNode
#public CodeBlockNode(string Language, string Text)
Fenced code block from a <code> element.
Parameters
Languagestring- Language identifier used by the code fence (e.g.
csharp). Textstring- The code content with leading indentation stripped.
Pennington.ApiMetadata.CodeBlockNode
namespace Pennington.ApiMetadata;
/// Fenced code block from a <code> element.
public record CodeBlockNode
{
/// Fenced code block from a <code> element.
public CodeBlockNode(string Language, string Text)
;
/// Language identifier used by the code fence (e.g. csharp).
public string Language { get; set; }
/// The code content with leading indentation stripped.
public string Text { get; set; }
}