CodeHighlightRenderOptions Pennington.Markdown.Extensions
Options for customizing the CSS classes used in the code highlight renderer.
Properties
OuterWrapperCssstring- requiredCSS class for the outer wrapper element.
PreBaseCssstring- requiredCSS classes for the Pre element.
PreStandaloneCssstring- requiredAdditional CSS classes for the Pre element when not in a tabbed code block.
StandaloneContainerCssstring- requiredCSS classes for the container when not in a tabbed code block.
Fields
DefaultPennington.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; }
}