This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

CodeHighlightRenderOptions Pennington.Markdown.Extensions

Options for customizing the CSS classes used in the code highlight renderer.

Properties

OuterWrapperCss string
required
CSS class for the outer wrapper element.
PreBaseCss string
required
CSS classes for the Pre element.
PreStandaloneCss string
required
Additional CSS classes for the Pre element when not in a tabbed code block.
StandaloneContainerCss string
required
CSS classes for the container when not in a tabbed code block.

Fields

Default Pennington.Markdown.Extensions.CodeHighlightRenderOptions
Default: new() { OuterWrapperCss = "code-highlight-wrapper not-prose", StandaloneContainerCss = "standalone-code-container", PreBaseCss = "", PreStandaloneCss = "standalone-code-highlight", }
Default CSS class configuration used by the code highlight renderer.

Pennington.Markdown.Extensions.CodeHighlightRenderOptions

namespace Pennington.Markdown.Extensions;

/// Options for customizing the CSS classes used in the code highlight renderer.
public record CodeHighlightRenderOptions
{
    /// Default CSS class configuration used by the code highlight renderer.
    
Default = new()
   {
       OuterWrapperCss = "code-highlight-wrapper not-prose",
       StandaloneContainerCss = "standalone-code-container",
       PreBaseCss = "",
       PreStandaloneCss = "standalone-code-highlight",
   }
/// CSS class for the outer wrapper element.
public required string OuterWrapperCss { get; init; }
/// CSS classes for the Pre element.
public required string PreBaseCss { get; init; }
/// Additional CSS classes for the Pre element when not in a tabbed code block.
public required string PreStandaloneCss { get; init; }
/// CSS classes for the container when not in a tabbed code block.
public required string StandaloneContainerCss { get; init; }
}