UNPKG

@mitre/nuxt-smartscript

Version:

Smart typography transformations for Nuxt - automatic superscript, subscript, and symbol formatting

21 lines (20 loc) 660 B
/** * Text processing logic for SmartScript */ import type { ProcessingResult, TextPart } from './types.js'; /** * Process matched text and determine how to transform it */ export declare function processMatch(matched: string): ProcessingResult; /** * Process a text string and split it into parts (with caching) */ export declare function processText(text: string, pattern: RegExp): TextPart[]; /** * Check if text needs processing */ export declare function needsProcessing(text: string, pattern: RegExp): boolean; /** * Clear processing caches (useful for navigation or memory management) */ export declare function clearProcessingCaches(): void;