tangled
alpha
login
or
join now
apoena.dev
/
sequoia
forked from
stevedylan.dev/sequoia
A CLI for publishing standard.site documents to ATProto
0
fork
atom
overview
issues
pulls
pipelines
fix: preserve @[]() embed directives in link cleanup
Julien Calixte
1 day ago
46c78b6c
702a1852
+1
-1
1 changed file
expand all
collapse all
unified
split
packages
cli
src
commands
publish-lite.ts
+1
-1
packages/cli/src/commands/publish-lite.ts
···
126
126
content: string,
127
127
allPosts: BlogPost[],
128
128
): string {
129
129
-
const linkRegex = /(?<!!)\[([^\]]+)\]\(([^)]+)\)/g
129
129
+
const linkRegex = /(?<![!@])\[([^\]]+)\]\(([^)]+)\)/g
130
130
131
131
return content.replace(linkRegex, (fullMatch, text, url) => {
132
132
if (!isLocalPath(url)) return fullMatch