refactor: move pure utility functions out of UI components (#1194)

This commit is contained in:
Oscar Zhou 2026-04-14 17:39:11 +09:30
parent e1e4bb4706
commit d37417cbe9
10 changed files with 55 additions and 51 deletions

View file

@ -0,0 +1,4 @@
export function convertRenderedToDisplay(contentRendered: string): string {
// Convert @{DisplayName} format to @DisplayName for editing
return contentRendered.replace(/@\{([^}]+)\}/g, "@$1");
}