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
servicesIServiceCollectionconfigureAction<BeckOptions>
Returns
IServiceCollectionPennington.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)
;
}