Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

271 B
Raw Blame
export function decodeDefinitionText(element: Element): string {
  const lineBreaks = /<br\/>/g;
  const endBreak = /(?<=.)(<br\/>)$/g;
  if (!element.innerHTML) return '';
  return element.innerHTML
    .replaceAll(endBreak, '')
    .replaceAll(lineBreaks, '\r\n\n');
}