WordBreakExtensions
Pennington.Infrastructure
Opt-in registration for word-break typography.
Methods
AddWordBreak
#public static IServiceCollection AddWordBreak(IServiceCollection services, Action<WordBreakOptions> configure = null)
Registers WordBreakHtmlRewriter in the shared HTML rewriting pipeline, so long identifiers in the configured elements get <wbr> break opportunities without an extra DOM parse.
Parameters
servicesIServiceCollection- The service collection.
configureAction<WordBreakOptions>- Optional configuration of the selector and break behavior.
Returns
IServiceCollectionThe service collection, for chaining.
Pennington.Infrastructure.WordBreakExtensions
namespace Pennington.Infrastructure;
/// Opt-in registration for word-break typography.
public class WordBreakExtensions
{
/// Registers WordBreakHtmlRewriter in the shared HTML rewriting pipeline, so long identifiers in the configured elements get <wbr> break opportunities without an extra DOM parse.
public static IServiceCollection AddWordBreak(IServiceCollection services, Action<WordBreakOptions> configure = null)
;
}