This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

BeckServiceExtensions Pennington.Beck

Dependency injection extensions for registering the Pennington Beck integration.

Methods

AddPenningtonBeck

#
public static IServiceCollection AddPenningtonBeck(IServiceCollection services, Action<BeckOptions> configure = null)

Adds build-time Beck diagram rendering — ```beck fences (and the ```beck:symbol file-embed form) render to self-animating inline SVG through the pure-C# Beck engine, no client-side rendering. Configure fonts, an exact text measurer, or a site-wide default style via RenderOptions. Each embed gets a fullscreen-zoom button backed by a small head-contributed script; opt out with Zoom.

Parameters

services IServiceCollection
configure Action<BeckOptions>

Returns

IServiceCollection

Pennington.Beck.BeckServiceExtensions

namespace Pennington.Beck;

/// Dependency injection extensions for registering the Pennington Beck integration.
public class BeckServiceExtensions
{
    /// Adds build-time Beck diagram rendering — ```beck fences (and the ```beck:symbol file-embed form) render to self-animating inline SVG through the pure-C# Beck engine, no client-side rendering. Configure fonts, an exact text measurer, or a site-wide default style via RenderOptions. Each embed gets a fullscreen-zoom button backed by a small head-contributed script; opt out with Zoom.
    
public static IServiceCollection AddPenningtonBeck(IServiceCollection services, Action<BeckOptions> configure = null)
; }