Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

181 B
Raw Blame
export function normalizeReferenceLabel(value: string): string {
  return value
    .replace(/[\t\n\r ]+/g, ' ')
    .replace(/^ | $/g, '')
    .toLowerCase()
    .toUpperCase();
}