A CLI for publishing standard.site documents to ATProto

fix: preserve @[]() embed directives in link cleanup

+1 -1
+1 -1
packages/cli/src/commands/publish-lite.ts
··· 126 126 content: string, 127 127 allPosts: BlogPost[], 128 128 ): string { 129 - const linkRegex = /(?<!!)\[([^\]]+)\]\(([^)]+)\)/g 129 + const linkRegex = /(?<![!@])\[([^\]]+)\]\(([^)]+)\)/g 130 130 131 131 return content.replace(linkRegex, (fullMatch, text, url) => { 132 132 if (!isLocalPath(url)) return fullMatch